New course! Every coder should learn Generative AI!
Try a free lessonQ&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
Isogram Detector
2 Votes
Popsicle program
1 Votes
R programming
2 Votes
How to add shadow on text
0 Votes
I want you to help me guys
0 Votes
Help me with phyton
2 Votes