If a four digit integer number is input through the keyboard then write a c program to find the sum of first and last digit. Sample Input: 3254 Output: 7 Hints: 3(1st digit)+4(last digit)=7 Source Code:
A cashier has currency notes of denominations 10, 50 and 100. If the amount to be withdrawn is input through the keyboard, find the total number of currency notes of each denomination the cashier will have to give the withdrawer. Source Code:
If a 5 digit integer number is input through the keyboard, Write a program to print the sum of all the digits from taken input. Sample input: 54321 output: 15 Explanation: 5+4+3+2+1=15 Source Code: