answersLogoWhite

0

it's simple:

{

int a,b,c,d;

printf("enter the numbers");

scanf("%d %d %d" &a &b &c);

d=a+b+c;

printf("the sum is=%d" d);

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you calculate sum of digit of a given three digit number in visual basic?

simple program


What is an algorithm to calculate the sum of the digits of a three digit number?

algorithm is a way to solve your problem


How can you find the nth square number?

Three ways.. Multiply n by itself. Calculate Sum[2i+1,{i,0,n-1}] Calculate Sum[n,{i,1,n}]


Write a program to calculate the sum of the sequence number from 1 to n loop?

public static final int getSum(final int n) { int sum = 0; for(int i = 1; i <= n; ++i) { sum += i; } return sum; }


What is The quotient of four and the sum of a number and three?

The quotient of the sum of a number and three, and four is seven


What is the sum of four and the product of three and a number x?

The sum of four and the product of three and a number xxxx.


How do you you write the sum of a number and 3 in algedra in expression?

n+3 the sum of a number and three means a number plus three.


Write a program to find the sum of all positive number and terminate the program when sum exceed 999?

int sum = 0; int n = 0; while( sum <= 999 ) { sum += (++n); }


How do you find the sum of the three consecutive numbers?

Their sum is three times the middle number.


What are the three odd primes with the sum of 14?

There are not three odd primes with the sum of 14. The sum of three odd primes will be an odd number.


What is the product of the sum of 8 and 5?

The sum of 8 and 5 is 13. There is then no number with which to calculate its product.


How do you calculate average value?

(sum of data)/number of data