Q&A Discussões
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 Voto
4 RespostasPlease help !
0 Voto
2 RespostasWrite a static method called weave that that takes two integers as parameters and that returns the result of weaving their digits together to form a single integer. Two numbers x and y are weaved together as follows. The last pair of digits in the result should be the last digit of x followed by the last digit of y. The second-to-the-last pair of digits in the result should be the second-to-the-last digit of x followed by the second-to-the-last digit of y. And so on.
0 Voto
13 RespostasSchool management system
-1 Voto
2 RespostasQuente hoje
Ejercicio Pytho
0 Votes
Please rate my code from 1 to 10
2 Votes
Pig Latin
0 Votes
Square Roots
0 Votes
Uuu
1 Votes
How to start
0 Votes