Question: Can someone please do the code for these tasks in c++ please? Im very confused. Task 1: Write a program that reverse an integer. Enter
Can someone please do the code for these tasks in c++ please? Im very confused.
Task 1: Write a program that reverse an integer. Enter an integer: 123456 Reversed number 654321 Task 2: Write a program that reads integers until the user enters a 0, and then displays the sum of the integers. Use a function to do this (no restriction of how this function should be) Example Input Corresponding output Enter a value or 0 to quit 3 Enter a value or 0 to quit :2 Enter a value or 0 to quit: 15 Enter a value or 0 to quit:0 The total is 20 The total is 3 Enter a value or 0 to quit :1 Enter a value or 0 to quit : -2 Enter a value or 0 to quit: 4 Enter a value or 0 to guit: 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
