مساحت مربع
برنامه ای بنویسید که طول ضلع مربعی را از ورودی دریافت کند و مساحت آن را حساب کند
مساحت مربع = یک ضلع ضربدر خودش = یک ضلع یه توان 2
👨💻 1 ساعت قبل کاربر ناشناس این تمرین رو مشاهده کرد
برنامه ای بنویسید که طول ضلع مربعی را از ورودی دریافت کند و مساحت آن را حساب کند
مساحت مربع = یک ضلع ضربدر خودش = یک ضلع یه توان 2
a=float(input("Enter the area of one side of the square. "))
Answer=(a*a)
print("square area:",Answer)
# مساحت مربع
x = float(input("Enter the size of the side of the square: "))
if x > 0:
print("Square area = " , x*x)
else:
print("Error. Please enter the correct size.")
f = float(input("enter your number"))
print(f * f)
H = float(input("H: "))
W = H
S = ( W*H )
print(" S:", S)
name = int (input("1 zele = "))
print("masahat" ,' =', name * name)
t=float(input("اندازه ضلع مورد نظر را وارد کنید:"))
x= t*t
print("مساحت مربع برابر است با:", x)
# mohasebe masahat morabba
a = input (" tol yek zel ra vard kon : ")
zel_morabba = float(a)
masahat = zel_morabba * zel_morabba
print (" masahat_morbbai be zel ",zel_morabba, "===>" , masahat )
print ("Find the area of a square by saide.") # question
a = int(input("Enter the number of sides:")) # data
b = (a * a) # formula
print("anointing:",b) # answer
a=int(input("tool yek zele: "))
b=a*a
print(b)
tool = float(input("tool:"))
m = tool * tool
print(m)
جوابت را با Markdown بنویس و ثبت کن
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نامتوضیح کوتاهی بنویسید تا تیم بررسی کند.