Question: Write an algorithm to determine and display the square and cube of a number. (define your input) Output: Square of inum1 and Cube of iNum1

 Write an algorithm to determine and display the square and cube

Write an algorithm to determine and display the square and cube of a number. (define your input) Output: Square of inum1 and Cube of iNum1 Algorithm: 1. Start 2. Write "Enter a number:" 3. Read iNum1 4. isquare = inum 1 iNum 1 5. iCube = iNum 1 iNum 1 iNum 1 6. Write "Square is:" + isquare 7. Write "Cube is:" +iCube 8. Stop Python: Write a python program to evaluate your algorithm

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!