Dyskusje Q&A
Why does this ==20
0 głosów
2 odpowiedziJavaScript Alternative?
0 głosów
2 odpowiedziWorks
1 Głos
4 odpowiedziHi, 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 głosów
4 odpowiedziI have 10 variables called, int1, int2, int 3 and so on. The user can write one number into the console. If the user types 7, I want to add 3 to the value of int7. how do I do this without 10 if statements? can I somehow do something like, (int + "userinput") += 3?
thank you for your help! :D
0 głosów
2 odpowiedziPopularne dzisiaj
HTML
1 Votes
Could you ple ase help me???
0 Votes
What's wrong here?
0 Votes
How to grow in sololearn
0 Votes
Wifi Password
0 Votes