logo

Crowdly

Write a program in C++ to find the sum of the first and last digits of a number....

✅ 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: 12345

The first digit of 12345 is: 1

The last digit of 12345 is: 5

The sum of first and last digit of 12345 is: 6

More questions like this

Want instant access to all verified answers on ocs-alatoo.edu.kg?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!