Computer Science, asked by rinkupaul73, 9 months ago

write a program to print a three digit number and find the sum of the leftmost and the rightmost digit in c programming​

Answers

Answered by mritik308
2

Explanation:

Program for Sum of the digits of a given number

Given a number, find sum of its digits.

Examples :

Input : n = 687

Output : 21

Input : n = 12

Output : 3

Recommended: Please solve it on “PRACTICE ” first, before moving on to the solution.

General Algorithm for sum of digits in a given number:

Similar questions