Answered step by step
Verified Expert Solution
Link Copied!

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.
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

4. Support and enliven your speech with effective research

Answered: 1 week ago