Computer Science, asked by Anonymous, 4 months ago

Write a program to accept a number and check if it is greater than 0 or less than 0. If the no. is greater than zero, check if it is an even number and print the message "The number is a positive even number" else print the no. is an odd positive no. If the no. is less than zero print the message "the number is less than zero"

Answers

Answered by shriya1323
1

Answer:

I know the answer and I hope so

Explanation:

Sketch the following functions neatly y(x) = {-1 for x greater than or equal to -1 x -1 less than x less than or equal to 1 1 for x greater than 1

I think maybe this is the answer hope it helps you

Please mark me as the BRAINLIEST

Answered by paz90nnbnskh
2

Answer:

p=2

if p>0:

print("The number is a positive")

else:

print("The number is less than zero")

Explanation:

note:This is just half answer of your question.

and this is Python programming language.

Similar questions