write a C program to obtain the sum of the first and last digit of this number
Problem Statement: 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. Solution: /* Sum of 1st and last digit of a four digit number */ #include<stdio.h> #include<conio.h> main() { int n,a,sum=0; clrscr(); printf(“\Enter a four digit number”); scanf(“%d”,&n); a=n/1000; … Read more