#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; first_digit = (number / 1000) % 10; total = total + first_digit; printf ("The total of the first and the last digit of the entered number is: %d", total); } /*This program is based on the "Sum of Digits" Program */
The File can be found out at:
Download File
Download File
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin