New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Number of zeros at the end
2 Votes
16 AnswersHi, I need assistance aka HELP!
I've done this calculation in various ways some of printed nothing but zeros non stop.
Using while loop calculate all numbers 1 to 1000 add numbers to sum = sum + i
int sum = 0;
// use a while loop to calculate the sum of 1 to 1000
While(int sum = 0; sum >= 1000; sum = sum + I){
System.out.println(sum);
}
0 Votes
4 AnswersHot today
Strange narrowing conversion error from FLTK Color to Color Struct, Stroustrup's header Graph.h
0 Votes
Effects on HTML and JavaScript
0 Votes
Encryption and Decryption
1 Votes
Izzy the iguana
0 Votes
Any good alternative to do this
2 Votes
Can anyone help me with this?
0 Votes