Question: Write a program that asks the user to input two numbers. One is lesser than the other. For example, if the user enters 1 and

Write a program that asks the user to input two numbers. One is lesser than the other.
For example, if the user enters 1 and 20, the loop will display 1 to 20 and display
the sum of all odd numbers from 1 to 20.
Input: 1, 20
Output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 100
Input: 41, 32
Output:
32 33 34 35 36 37 38 39 40 41
185
C++ is the programming Language, Thanks!

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!