Question: I need help wriitng this program in c++. Thanks! Write a program that takes in an integer in the range 11100 as input. The output

I need help wriitng this program in c++. Thanks!
I need help wriitng this program in c++. Thanks! Write a program
that takes in an integer in the range 11100 as input. The

Write a program that takes in an integer in the range 11100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical. Additionally, output the distance between the starting and ending numbers (ex 9388=5) Note: End with a newline Exif the input is: 93 the output is: 939291908988 Ex: If the input is: 31 the output is Ex: if the input in: or any wolue not between 71 and 700 (inclusive), the output is: For coding amplicity, follow each output number by a space, even the lust one Use a whit loop. Compare the digits do not wite a large if else for alf possible same ilige numbers (11,22,33,,99), as that approach Would be cumbersome for iarger rooges Hint To practice incremental development, start by writing code that just outputs the countdown until matching digits and submit to get most of the points. Then, update your code to output the distance Activir 4.7.1:LAB Countown until matching digits 210 main.cpp Losed detoult templatin 1 Hinclude kiostreors 2. using namespace std; int- matn( ) /4. Type your code here: "/ ceturn 9; When done developing your program, prens the Submit for grading button betow this wili sutinit your program for auto-grading

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!