logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на ocs-alatoo.edu.kg?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!