design an application to enter 10 numbers and display the sum
Answers
Answered by
0
Answer:
ASKING OR TELLING????
Answered by
1
Answer:
I am doing this in java
import java.util.Scanner;
class Sum{
public static void main(String[] args){
int sum = 0;
Scanner sc = new Scanner(System.in);
System.out.println("Enter 10 numbers");
for(int i = 0 ; i<=10 ; i++){
sum += sc.nextInt();
}
System.out.println("the sum is "+sum);
}
}
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Computer Science,
4 months ago
Math,
10 months ago
Math,
10 months ago