Computer Science, asked by gulshanprasad2812, 2 months ago

Write a python cod.e for getting square of any number.​

Answers

Answered by nikhilgupta060707
0

Answer:

num = int(input(" Enter the number : "))

square = num*num

print(" The square of "+num+ " is : "+square)

Answered by purveshKolhe
3

Python cøde for getting square:

n = int(input())

print(n*n)

You can also use the following cøde:

n = int(input())

print(n**1)

How???

==> double star sign(**) stands for power in Python.

==> Number multiplied by itself means square, therefore, first is also correct.

Hope This Help You..

Similar questions