Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) Ask the user for 3 numbers ( 3 marks) 2) Using a loop, a) Start from either the first or second number ( 2
1) Ask the user for 3 numbers ( 3 marks) 2) Using a loop, a) Start from either the first or second number ( 2 marks) b) End at either the first or second number (inclusive) (2 marks) c) Increment or decrement by the third number. (4 marks) d) Output the number AND the cubed value of the number (1 marks) Examples on next page COURSE NAME: Intro to Programming COURSE CODE: COMP1250 Input First number: 1 , second number: 11 , third number: 3 Output 1 cubed is 1 4 cubed is 64 7 cubed is 343 10 cubed is 1000 OR First number: 1 , second number: 11 , third number: 3 Output 11 cubed is 1331 8 cubed is 512 5 cubed is 125 2 cubed is 8 OR Input First number : 20, second number: 10 , third number: 4 Output 20 cubed is 8000 16 cubed is 4096 12 cubed is 1728 OR Input First number: 20 , second number: 10 , third number: 4 Output 10 cubed is 1000 14 cubed is 2744 18 cubed is 5832
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