If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits. (Hint: Use the modulus operator ‘%’)
printf("Enter a five digit number\n");
printf("Sum of the digits of %ld is %ld",num,sum);
Amit Ranjan is from Sitamarhi. He completed his BCA from S.R.K.G college, Sitamarhi. Now he is currently working in Finesse WebTech as Online Marketing Executive. He love listening music, watching movies, net surfing and sketching in his free times.