I am just learning how to program and need help, I have no clue what to do. Everything I have tried has been a miserable failure. Help is appreciated thanks!
My teacher asked us to do this: The Problem:
Write a program that will allow the user to input a minimum and maximum integer. Then, the program should ask the user if they would like to count or sum the integers. If the user chooses to count the numbers, the program should list all of the integers from the minimum to the maximum. If the user chooses to sum, the program should sum all the integers from the minimum to the maximum.
The user inputs 1 as the minimum number and 5 as the maximum. They choose to count. The program outputs 1 2 3 4 5.
The user inputs 1 as the minimum number and 5 as the maximum. They choose to add. The program outputs 15.
//1 + 2 + 3 + 4 + 5 = 15