answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

10 + 10 = 20

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

64.0000

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The sum of a number and ten?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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


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

Write the following as an algebraic expression using x as the variable: The sum of a number and -8


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