Question: Write a program that displays the square of a positive number you enter in via the keyboard. The program should keep asking you for a

Write a program that displays the square of a positive number you enter in via the keyboard. The program should keep asking you for a number (and printing out the square of it) until you enter in a negative number at which point it prints the square of that number and then stops asking you.- give me a number: >5the square is 25give me a number: >7the square is 49give me a number: >-4the square is 16

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!