Привет пожалуйста Объясните этот код | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Привет пожалуйста Объясните этот код

while(number>0){ fact*=number--; } System.out.println(fact);

8th Jan 2023, 6:54 AM
Erkaboev Ilhom Isomjonovich
Erkaboev Ilhom Isomjonovich - avatar
2 Answers
+ 3
while <number> is greater than zero begin multiply <fact> by <number> then decrease <number> by 1 end print <fact> on screen/console
8th Jan 2023, 7:09 AM
Ipang
0
Thanks a lot for your help
8th Jan 2023, 7:23 AM
Erkaboev Ilhom Isomjonovich
Erkaboev Ilhom Isomjonovich - avatar