Write a program to find the sum of first digit and last digits of a number
Answers
Answered by
0
Answer:
Algorithm to find the sum of first and last digit using the loop:
int n = 1234;
lastDigit = num % 10.
sum = firstDigit + lastDigit;
Similar questions