Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: the square is give me a number: the square is give me a number: the square is
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