This site requires JavaScript, please enable it in your browser!
Greenfoot back
Kabaka
Kabaka wrote ...

2014/3/25

changing loop

Kabaka Kabaka

2014/3/25

#
pliz how do i change that to a while loop? long n = 1; for ( int i = 1; i < 10; i++) { n = n * i; }
danpost danpost

2014/3/25

#
Please refer to The While Loop and the The For Loop pages of the Java tutorials.
You need to login to post a reply.