answersLogoWhite

0

import java.io.*;

public class sum{

public static void main(String[] args) {

try{

System.out.print("Enter 10 numbers: ");

BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

int[] input=new int[10];

int a,total=0;

for(a=0;a<10;a++) {

System.out.println();

input[a]=Integer.parseInt(br.readLine());

}

for(a=0;a<10;a++) {

total+=input[a];

}

System.out.println("The sum of the numbers is "+total);

}catch(Exception e) {

e.printStackTrace();

}

}

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the greatest number that has ten as the sum of its digits?

ten ones with an infinite number of zeroes.


What number is equal to the sum of ten tens and eighteen?

118


What is the difference between the sum first ten prime number and first ten composite number?

129 - 112 = 17


When this number is added to ten the sum is three times the original number What is the original number?

Five


When you round this number to the nearest ten you get 310 the sum of the digits is 6 what is the number?

312


I am an even three digit number If your round me to the nearest ten I become 200 The sum of my digets is 18 What number am I?

I am an even three digit number If you round me to the nearest ten I become 200 The sum of my digets is 18 What number am I?


What is the sum of a number and ten times the same number is 99?

9+90=99 (90 is ten times as much as 9)


What is the sum of ten and the product of a number and four made into an expression?

48


Write a variable expression the product of thirteen and the sum of a number and ten?

the product of 8 and the sum of 10 and -7


What happens to the number of zeros in the product when you multiply a whole number by a power of ten?

The number of 0s in the product is equal to the sum of the number of 0s in the whole number that you started with and the power [of ten].


How write algorithm for finding the sum first ten even number?

Sum = 0 For N = 1 to 10 Sum = Sum + 2*N Next N Print Sum


Write the following in mathematical expression the sum of a number and ten?

Oh, isn't that just lovely? To express the sum of a number and ten in mathematical terms, you simply write it as &quot;x + 10&quot; where 'x' represents the number you're adding ten to. Just imagine that number and ten dancing together on the canvas of mathematics, creating a beautiful harmony of addition. Happy little numbers!