C languageC SolutionChapter 2Programming

Q1 If a five-digit number is input through the keyboard , write a c program to calculate the sum of its digits.

Program: 59

If a five-digit number is input through the keyboard , write a c program to calculate the sum of its digits. | Let us C Solution

Output

 Enter Five Digit Number: 1111111111
 Sum: 10

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.