CodeSolved

A comprehensive source of programming questions and exercises

The size of the square side

Practice Easy 106/ Download 861 Views

Write a program that receives the square area from the user and prints the size of each side in the output

14 Answers

This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
# Receiving the area of ​​square and printing its size
print(int(input("masahat: ")) ** 0.5)
Hossien Download Python
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))
User 2637 Download Python
import math
msht_mb=float(input(":مساحت مربع مد نظر خود را وارد نمایید"))
print(f":اندازه ضلع مربع{math.sqrt(msht_mb)}")
Yasin.hn Download Python
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())
Roghaye.m Download Python
i=int(input('masahate moraba ra vared konid:'))
print(i**0.5)
Maryam.n Download Python
<< Previous page 1 2 Next page >>

Submit answer

Submitting answers is currently unavailable.

Related content

Detection using AI
×
×
Close