Q&A Discussions
Hi, 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
which programming language
1 Votes
What to learn?
1 Votes
Operator bool overloaded
1 Votes
Help me
2 Votes
Cybersecurity
1 Votes
I AM CREATING A ROBLOX GAME
0 Votes
Arduino
1 Votes