Study guides

☆

Q: Write programme for sum of number given?

Write your answer...

Submit

Still have questions?

Related questions

The sum and average of a given number is just that number, so there is no need to write a program.

write algorithem to find the sum of given n number

Well, it's very hard to write a flowchart in text, so I'll give you some pseudo code instead. int number = the given number int sum = 0 loop while number is not 0 sum = sum + (number mod 10) number = number / 10

I am writing only the functionint sum_of_digit(int num){int sum=0;while(num){sum=sum+num%10;num=num/10;}return sum;}

Algorithm and Flowcharts for a program to compute the sum of the squares of the numbers for a given range used for loop

sum= answer of an addition question.. so the number of the sum is the answer.

5

Write a pair of number which have a sum of 11 and a product of 24?

i dont now

10 sum = 0 20 for n = 1 to 10: input x: sum = sum + x 30 next: print sum: end

a+21

the sum of individual digits of a given integer number

People also asked