Computer Science, asked by jhashreya707, 4 months ago

input 10 numbers from the user and print sum of all the numbers . print the output ​

Answers

Answered by taniskamukherjee02
1

Answer:

1+2+3+4+5+6+7+8+9+10 = 55

Explanation:

for (i=1; i<=10; i++);

{

s=s+i;

}

System.out.println ("Sum of all numbers" + i);

This is just the snippet of java program

Similar questions