Computer Science, asked by bardankarki0078, 11 months ago

algorithm and flowchart to find sum of first and last digit of given number

Answers

Answered by 18shreya2004mehta
5

Answer:

Input a number from user. ...

To find last digit of given number we modulo divide the given number by 10 . ...

To find first digit we divide the given number by 10 till num is greater than 0 .

Finally calculate sum of first and last digit i.e. sum = firstDigit + lastDigit .

Similar questions