C languageC SolutionChapter 2Programming

Q3 If a four digit number is input through the keyboard, write a program to obtain the sum of the first and last digit of this number.

Program: 61

If a four digit number is input through the keyboard, write a c program to obtain the sum of the first and last digit of this number.| Let us C Solution

Output

 Enter a number: 12345
 Sum of first and last digit of 12345 is: 6

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.