Math, asked by ggnancyb777, 5 months ago

a=input("Enter a number:")
b=a'a
print("The square of number is:",b)
NO
What will be the ouput for input value 5?
O The square of number is 25
O Name Error
Type Error
The square of number is:55​

Answers

Answered by abinabhiraj
0

Answer:

Bro change ' to *

Step-by-step explanation:

* is used for multiplication in python.

If you are using python.

Also you must add int because without int it is a string.

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

b=a*a

print("The square of number is:", b)

Better presentation can be done

like:-

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

b=a**2

print("The square of number is:", b)

#(** is for power)

Hope you understood!

Similar questions