The size of the square side
Write a program that receives the square area from the user and prints the size of each side in the output
Write a program that receives the square area from the user and prints the size of each side in the output
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
# Receiving the area of square and printing its size print(int(input("masahat: ")) ** 0.5)
import math
m=int(input())
print((math.sqrt(m)))
import math s = int(input("Enter the value of s please: ")) #x = s**0.5 توی این راه حل اگه کاربر بهمون عدد منفی هم بده باز برنامه ازش رادیکال میگیره که این یک اشتباه منطقیه x = math.sqrt(s) #print(x) # The function we used to get a radical return to us a lot. print(int(x))
import math msht_mb=float(input(":مساحت مربع مد نظر خود را وارد نمایید")) print(f":اندازه ضلع مربع{math.sqrt(msht_mb)}")
import math class Math: def __init__(self,masahat): self.masahat=masahat def Canculation(self): return math.sqrt(self.masahat) a=int(input("enter the masahat")) obj=Math(a) print(obj.Canculation())
let get_number = +prompt("enter the number")
if(isNaN(get_number)){alert("enter number")
}else{
console.log(get_number * get_number)
}
ma=float(input("ma:")) z=(ma**(1/2)) print(z)
Submitting answers is currently unavailable.
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.