Question: Write a program that asks the user for a number. Use an if - else to determine if the number is positive or negative. A
Write a program that asks the user for a number.
Use an ifelse to determine if the number is positive or negative. A number will be considered positive if it is greater than or equal to Otherwise, it is considered to be negative.
If it is positive, print The number is positive!
If it is negative, print The number is negative!
Very, very small technicality: zero is neither positive nor negative. Well consider it positive for this problem.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
