¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones de PyR
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 Votos
4 RespuestasEn tendencia hoy
Code Playground
0 Votes
xampp
0 Votes
Media on HTML
0 Votes
Editor HTML
0 Votes
How to solve this
0 Votes
Sololearn keeps freezing.
0 Votes