Home > Back-end >  New people for help
New people for help

Time:10-09

1 ∽ 200 and calculated using JAVA

CodePudding user response:

The
refer to the original poster m0_46551687 response:
1 ∽ 200 and calculated using JAVA

Public class Sum {

Public static void main (String [] args) {
//TODO Auto - generated method stub
int sum=0;

for (int i=1; I & lt;=200; I++) {
The sum +=I;
}
System. The out. Println (" 1 to 200 accumulation and for: "+ sum);
}

}
  • Related