Home > Back-end >  Java Script
Java Script

Time:10-08

Write a program to 10, 30... 200 and

CodePudding user response:

 
Int total=0;
For (int I=10; I & lt;=200; ) {
Total=total + I;
I=I + 10;
}
System. The out. Println (total);

CodePudding user response:

 
The function to the add () {
Var total=0;
For (var I=1; I & lt;=20; I++) {
Total +=I * 10;
}
Alert (total);
}