write a program to accept a number check and print whether it is positive negative or neutral it is positive then printed cube and if it is negative then print its square
Answers
Answered by
0
Answer:
a = int(input("Enter a number:"))
if a > 0:
print("the number is positive")
print("Cube of number:", (a * a * a))
else if a == 0:
print("The number is nutral")
else:
print("The number is negetive")
print("square of number:", (a*a))
Similar questions
English,
2 months ago
Physics,
2 months ago
Computer Science,
2 months ago
Computer Science,
5 months ago
Hindi,
5 months ago
Math,
10 months ago