Question: Using a while statement, write a program that does the following: You enter an integer. What is the number? If you entered a positive integer,

Using a while statement, write a program that does the following:
You enter an integer. "What is the number?"
If you entered a positive integer, it prints "This is a positive number" on the screen.
If you entered a negative integer, it prints "This is a negative number" on the screen.
If you entered zero, Python exits the loop and prints "This is the end of the program." on the screen.
Here is a sample of the possible output. Your program will continue asking for numbers until you enter zero.
What is the number? 7
This is a positive number.
What is the number? 3
This is a positive number.
What is the number? -5
This is a negative number.
What is the number? 0
This is the end of the program.
You must use a while statement that will continue going through the
 Using a while statement, write a program that does the following:

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!