Write a program to find the square of the number taken from user

Number of replies: 66
In reply to First post

Re: Write a program to find the square of the number taken from user

by Siam Ahmed -
import math
num = float(input("Enter the number: "))
squareValue = math.pow(num, 2)
print(squareValue)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Nazmus Salehin -
user_input = float (input ("Enter a Number: "))
result = float(user_input * user_input)
print("The square of ",user_input, " is ", result)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Siam Ahamed -
a = int (input ("Enter a Number"))
b = int(a * a)
print(b)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Mohammad Dipo Sultan -
a=int(input("Enter a intger number: "))
x=a*a
print("Square of the number is:",x)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Ruhani Akter -
num = int(input("Enter a number:"))
ans = num*num
print("square of the number taken from user is:",ans)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Momotaz Zahan Mim -
import math
num = float(input("Enter the number: "))
square = math.pow(num, 2)
print("Square of {0} is {1} ".format (num, square))
In reply to First post

Re: Write a program to find the square of the number taken from user

by Md.Tawhidul Islam -
x = int (input ("Enter a Number: "))
y = int(x * x)
print(y)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Md. Rafeul Islam Rafe -
number = int (input (" Number: "))
x = int(number * number)
print("Squrt = ",x)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Afroja Rahman -
a=int(input("Enter a number: "))
b=a*a
print("Square of the number is:",b)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Afroja Rahman -
a=int(input("Enter a number: "))
b=a*a
print("Square of the number is:",b)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Jannatul Islam -
a = int (input ("Enter a Number "))
b = int(a * a)
print(b)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Liza Meem 192-15-2903 -
numberInput = int(input("Enter a Number: "))
squareNumber = int(numberInput * numberInput)
print(squareNumber)
In reply to First post

Re: Write a program to find the square of the number taken from user

by tamim rahman -
number = int (input (" Number: "))

a = int(number * number)

print("Squrt = ",a)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Ismot samia 192-15-13028 -

numberInput = int(input("Enter a Number: "))
squareNumber = int(numberInput * numberInput)
print(squareNumber)

In reply to First post

Re: Write a program to find the square of the number taken from user

by Sujon Islam -
a = int (input ("Enter a Number"))
b = int(a * a)
print(b)
In reply to First post

Re: Write a program to find the square of the number taken from user

by MD.Munim Shariair Galib -
numberInput = int(input("Enter a Number: "))
squareNumber = int(numberInput * numberInput)
print(squareNumber)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Easin Parvez(192-15-13197) -
import math
num = float(input("Enter the number: "))
squareValue = math.pow(num, 2)
print(squareValue)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Abu Salkin -
a = int (input ("Enter a Number"))
b = int(a * a)
print(b)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Easin Parvez(192-15-13197) -
numberInput = int(input("Enter a Number: "))
squareNumber = int(numberInput * numberInput)
print(squareNumber)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Gazi Shahriar Samrat Hridoy -
#include int main()
{
printf("Please Enter any integer Value : ");
scanf("%f", &number);
square = number * number;
printf("square of a given number %.2f is = %.2f", number, square);
return 0;
In reply to First post

Re: Write a program to find the square of the number taken from user

by Sazzad Hossain -
i = int (input ("Enter a Number:"))
j = int(i * i)
print(j)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Alif Pranto -
a = int (input ("Enter a Number"))
b = int(a * a)
print(b)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Abu Salkin -
R = int (input ("Enter the Number: "))
K = int(R * R)
print(K)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Hasiba Ferdous 192-15-2820 -
numberInput = int(input("Enter a Number: "))
squareNumber = int(numberInput * numberInput)
print(squareNumber)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Shahid Shahriar -
a = int (input ("Enter a Number"))
b = int(a * a)
print(b)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Sumon Bala -
import math
num = float(input("Enter the number: "))
squareValue = math.pow(num, 2)
print(squareValue)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Meherol Hasan -
import math
num = float(input("Enter a number: "))
squareValue = math.pow(num, 2)
print(squareValue)
In reply to First post

Re: Write a program to find the square of the number taken from user

by Akramul Ratul -
number = float(input(" Please Enter any numeric Value : "))

square = number * number

print("The Square of a Given Number {0} = {1}".format(number, square))