Computer Science, asked by maanabhi224, 1 year ago

A QUESTION FROM PYTHON PROGRAMMING.....
.
.
Input a number, if the number is odd then print the square of the number.
.
.
Please help me out friends.....​

Answers

Answered by star9822
1

Answer :

n=int(input("Enter a number ="))

If n%2!=0:

print(n,"is an odd number and square of the number is",n**2)

i hope this helps you.

Similar questions