Computer Science, asked by leejarajesh201228, 9 months ago

input a number if it is even print it's square otherwise print it's cube
in python ​

Answers

Answered by rthannasi
2

HOPE IT'S HELPFUL TO ALL WHO SEES THIS ANSWER

Kindly make me as brainlyist answer

Attachments:
Answered by Nachiketman
11

Answer:

num1 = float(input( " Enter any number : " ,))

if (num1 % 2 ==0):

        print ( num1 * num1 )

else :

        print ( num1 * num1 * num1)

MARK AS BRAINLIEST ANSWER.....

Similar questions