005-002-010
If-Else: Positive or Negative
Easy
Problem Description
If-Else: Positive or Negative
Learning Objective: Understand how to implement two-branch logic using if-else statements
Overview
Create a program that determines whether a given number is positive or not.
Specifications
- Assign value -5 to variable
number - Use if-else statement to check positivity
- Output "Positive" if positive, "Not positive" if zero or negative
Output Format
Not positive
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
