Question: Write a program that reads an integer and uses a decision statement(s) to print whether it is negative, zero, or positive Ex: If the input

 Write a program that reads an integer and uses a decision

Write a program that reads an integer and uses a decision statement(s) to print whether it is negative, zero, or positive Ex: If the input is: Enter an integer: 3 the output should be: The number is positive Ex: If the input is: Enter an integer: 5 the output should be: The number is negative Ex: If the input is: Enter an integer: 0 the output should be

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!