Write a program to c language find sum of first and last digit of a four
digit number given as input by user print output
Answers
Answered by
1
Answer:
C Program to Sum of First and Last Digits of a Four-Digit number
#include<stdio.h>
main ()
{
int number, last_digit, first_digit, total;
printf (" Enter the number which is to be operated on: ");
scanf ("%d", &number);
last_digit = number % 10;
total = last_digit;
Similar questions