English, asked by sona6522, 19 days ago

Write a program to find the sum of first digit and last digits of a number

Answers

Answered by princeraj257
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