Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a program that keeps prompting the user to input an integer as long as the integer is not zero then output either positive number
write a program that keeps prompting the user to input an integer as long as the integer is not zero then output either positive number or negative number depending on the nature of the number. the input zero ends the program. Write a program that keeps prompting the user to input an integer (a loop is needed) as long as the in not zero, then output either "positive number" or "negative number" depending the nature of the nur inputted zero ends the program. Here is an example of output C:Windows system32\cmd.exe Enter an integer(input zero will stop the program); 6 6 is a positive numbmer Enter an integer(input zero will stop the program): -8 -8 is a negative numbmer Enter an integerKinput zero will stop the program: 10 10 is a positive numbmer Enter an integer(input zero will stop the program: 0 0 is enterd. the program ended Press any key to continue
write a program that keeps prompting the user to input an integer as long as the integer is not zero then output either positive number or negative number depending on the nature of the number. the input zero ends the program.
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