Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Write a program that will add a list of user entered numbers together. The number of numbers will be specified by the user.
2. Write a program that will add a list of user entered numbers together. The number of numbers will be specified by the user. The results should be displayed as follows: How many numbers do you wish to add? 4 Enter number 1: 92 Enter number 2: 20 Enter number 3: 18 Enter number 4: 35 92 20 18 35 The sum of the above numbers is: 165 3. Write a program that will allow the user to enter two numbers. The program should display all of the numbers in between the two numbers as follows: Enter the first number: Enter the second number. 10 The list of numbers is: 7, 8, 9, 10 4. Write a program that asks the user to enter words until they get to five words OR they enter the word 'end'. The words they enter should be displayed on screen. 5. Write a program to output the square of integers starting at 5 and going up by 5's. Stop when the square becomes larger than 5000. The results should be displayed as follows: 5 squared is 25 10 squared is 100 (and so on) 6. Write a program that calculates the factorial of an integer entered by the user. The symbol for factorial is the '' sign. 51=5x4x3x2x1 = 120 31-3x2x1-6 11-1 01=1 Enter a number: 5 The factorial of 5 is: 5x4x3x2x1 120
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started