Hello, I've been given a problem where I need to ask the user to input a number between 1 and 100. The program should then take that number and display the sum of all the numbers between the number the user entered and 1. The actual problem is below:
However, I have no idea where to start coding this.Write a program that asks the user for a number between 1 and 100 from the user and will print the sum of all the numbers between 1 and that number. For example if the user enters 6 the output should be : The sum of numbers between 1 and 6 is 21.
Any ideas? Thanks.