ASSIGNMENT - 3 Positive or Negative

 Positive or Negative

A number

N
is given as input. Write a program to check if
N
is positive or negative.


Input

Given a number (float)

N
as input.


Output

The output should be a string that can be either

Positive
or
Negative
.


Explanation

In the given example

N = -12.5
. As the value of
N
is less than
0
, the output should be
Negative
.



code:


N=float(input())
if N<0:
    print("Negative")
else:
    print("Positive")




Comments

Popular posts from this blog

CODING ASSIGNMENT 4

CODING PRACTICE 11 Music Page

CCBP Static Website Coding Assignment 2 Solution | Yoga Page