Computer Science, asked by hunterfreeman113, 8 months ago

How do I Write a program which takes a three digit number as an input, then prints the digits of this number one per line in reverse order.

Answers

Answered by ramshankar8693
0

Answer:

Declare the int into num1, num2 and num3 along witht the output, reverse.

Ask the user to enter a number to reverse.

Store the number using scanf.

Get the last digit of the number , num1= n/100.

Get the middle digit from the user, num2=(num%100)/10.

To get the last digit from the user, num3=(num%10)/100.

Similar questions