Computer Science, asked by minirout7220, 10 months ago

design an application to enter 10 numbers and display the sum​

Answers

Answered by rajs40shah
0

Answer:

ASKING OR TELLING????

Answered by IamGenesis
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