If a five digit number is input through the keyboard write a program to calculate the sum of its digits?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

If a five-digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits. For example if the number that is input is 12391 then the output should be displayed as 23402.
//Author::Mudasir Yaqoob.....


int main()

long number,t;
int i=0;
long temp[5];
printf("Enter the five digit number:\n\n");


printf("Reverse number\n\n\n\n");
+ 5 others found this useful
Thanks for the feedback!

What's the funniest thing that's happened during an interview?

View Full Interview

What to do to write a c program to input a number then a digit and findout the place value of that digit?

include int main() { int d,j=1,i,flag=0,count=0,k=0; int b[]; char a[],c; printf("enter the number="); scanf("%s",a); printf("enter the digit="); scanf("%c",&c); prin (MORE)

A 5 digit positive integer is entered through the keyboard how to write a function in C to calculate sum of digits of the 5 digits number by using recursion and without using recursion?

include int digit_sum(int); int digit_sum_rec(int); main() { int num; printf("Enter 5 digit positive integer. : "); scanf("%d",&num); printf("The sum of the d (MORE)
In Italy

5 Types of Italian Keyboards Online

There are many reasons to take a Eurotravel trip to a place like Italy. The culture, food, wine, and breathtaking sights are at the top of the list. However, sometimes you mig (MORE)

Easy to Use Digital Drawing Programs

Digital drawing software provides you with all the tools you need to draw, paint or create graphics. Here are some of the best digital drawing programs available.SketchBook Pr (MORE)

The Best Free Digital Photography Programs

Digital photography programs have made great advances in the past few years. It has gotten to the point where programs you download for free have so many features and tools th (MORE)
In Hobbies

Digitize Your Paper Genealogy Documents

A good way to reduce the amount of paperwork involved in genealogical research is to begin a program of digitizing or scanning documents then attaching the digitized copies to (MORE)

What Was the First Digital Computer?

A timeline showing a history of computers, or digital computers, can make a fascinating study. Compared to today's computers, the early machines were behemoths. Slow by today' (MORE)

Write a c program to compute the sum of digits of a given integer number?

int sumDigits(int n) {   int sum = 0;    while( n > 0 ) {   sum += (n % 10); // add last digit of n to sum   n /= 10; // divide n by 10 to "chop off" the la (MORE)

Write a java program to find out the sum of a number of n digits?

class Sum_Of_Digits { public static void printSumandnoofdigits(int n) { int temp = n; int count = 0; int sum = 0; while ( n > 0 ) { sum = sum + n % 10; n = (MORE)

Using if condition and while loop in C get a number of input from the keyboard and calculate the sum of odd and even digits separately?

include #include void main() { int num,num_save; int ar[5],i=0,res_e=0,res_o=0; printf("\\nEnter the number : "); scanf("%d",&num); num_save=num; while(num_s (MORE)