Question: Task Write a program that displays the square of a positive number you enter in via the keyboard. The program should keep asking you fora
Task Write a program that displays the square of a positive number you enter in via the keyboard. The program should keep asking you fora number until you enter in a negative number at which point it prints the square of that number and then stops asking you. Here's example input/output: Enter an integer: 10 100 Enter an integer: 12 144 Enter an integer: -1 and then the program stops asking you for any more numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
