i tried the FOR & WHILE function, but still there's something does not pass.

please give some clue

here is my sample:

      int b, c, d;
      b=1;
      c=10;
      for(int x=b; x<=c; x++)
      { 
      d=x*b;
      System.out.println(d);
      b=d;
      }

result: 1 2 6 24 120 720 5040 40320 362880 3628800

asked 27 Feb '15, 16:17

Juan%20Dela%20Cruz's gravatar image

Juan Dela Cruz
112
accept rate: 0%

edited 01 Mar '15, 05:51

Diego%20Carleone's gravatar image

Diego Carleone ♦♦
7615


print the result out of the for loop .. i guess you need only show the final 3million value

link

answered 02 Mar '15, 06:46

Josh's gravatar image

Josh
512
accept rate: 100%

thanks bro! i can't vote im only 11pts.

(02 Mar '15, 15:14) Juan Dela Cruz

Please write full text of the programm with task. I think that task is print one final result.

link

answered 04 Mar '15, 04:43

RabenokDmitry's gravatar image

RabenokDmitry
1263
accept rate: 14%

System.out.println(3628800);

link

answered 04 Apr '17, 13:36

xnopino's gravatar image

xnopino
112
accept rate: 0%

it's as simple as that

(04 Apr '17, 13:36) xnopino

System.out.println(123456789*10);

link

answered 14 Nov '17, 03:39

Vchornyy's gravatar image

Vchornyy
1
accept rate: 0%

System.out.println(123456789*10);

link

answered 14 Nov '17, 03:40

Vchornyy's gravatar image

Vchornyy
1
accept rate: 0%

System.out.println(123456789*10);

link

answered 14 Nov '17, 03:40

Vchornyy's gravatar image

Vchornyy
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×19
×11
×5

Asked: 27 Feb '15, 16:17

Seen: 1,696 times

Last updated: 14 Nov '17, 03:40