+ 1

Java - while

How can I use operators in while methad?

14th Sep 2021, 3:36 PM
Manasbek Abdugani uulu
Manasbek Abdugani uulu - avatar
16 ответов
+ 3
Manasbek Abdugani uulu while is not a method it's a loop Loops in Java 1 - for - for fix iteration 2 - while - until condition is true 3 - do while - first do then check condition Using these loop we can solve your problem. for (int i = 1; i <= down; i++) { result *= i; } while (down > 0) { result *= down--; } do { result *= down--; } while(down != 0); https://code.sololearn.com/cpMtpshA3D7q/?ref=app
14th Sep 2021, 4:42 PM
A͢J
A͢J - avatar
+ 4
abol forEach is also in Java but in Java 8 Stream API For example: LongStream ls = LongStream.of(1000L, 12000L); ls.forEach(System.out::println);
14th Sep 2021, 5:41 PM
A͢J
A͢J - avatar
+ 2
Thank you so much bro Allah bless you 🤲🤲🤲😊 I spent for this loop at least 4 hours and I couldn't find it😁
14th Sep 2021, 4:11 PM
Manasbek Abdugani uulu
Manasbek Abdugani uulu - avatar
+ 2
Hi
16th Sep 2021, 9:23 AM
Kaushal Varma
Kaushal Varma - avatar
+ 2
Hi
16th Sep 2021, 1:19 PM
Manasbek Abdugani uulu
Manasbek Abdugani uulu - avatar
+ 1
Please someone help me
14th Sep 2021, 3:36 PM
Manasbek Abdugani uulu
Manasbek Abdugani uulu - avatar
+ 1
Manasbek Abdugani uulu Which operators?
14th Sep 2021, 3:39 PM
A͢J
A͢J - avatar
+ 1
Thank you to everyone 😊😊😊
14th Sep 2021, 11:26 PM
Manasbek Abdugani uulu
Manasbek Abdugani uulu - avatar
+ 1
class WhileDemo { public static void main(String[] args){ int count = 1; while (count < 11) { System.out.println("Count is: " + count); count++; } } }
16th Sep 2021, 4:23 AM
Arun Jamson
Arun Jamson - avatar
0
Multiplication
14th Sep 2021, 3:40 PM
Manasbek Abdugani uulu
Manasbek Abdugani uulu - avatar
0
I need to multiplicate decrement number in while method
14th Sep 2021, 3:47 PM
Manasbek Abdugani uulu
Manasbek Abdugani uulu - avatar