0

Write program

What programming to solve this question (To get input of two or higher digit integer number and display in reverse order)

16th Mar 2019, 7:21 PM
Azza
2 Answers
+ 1
User input: int number; cin >> number; Output: cout >> https://www.sololearn.com/learn/CPlusPlus/1607/?ref=app * while loop --> while number > 0 * inside while loop: - print number % 10 //last digit - number/=10 //remove last digit
16th Mar 2019, 7:38 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Thanks
17th Mar 2019, 12:08 PM
Azza