✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Write a program in C++ to find the sum of the first and last digits of a number.
Use while loop to solve this task.
Sample Output:Input any number: 12345The first digit of 12345 is: 1The last digit of 12345 is: 5The sum of first and last digit of 12345 is: 6
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!