Computer Science, asked by hasini5365, 5 months ago

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 imtiyazallam
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