مساحت مربع
برنامه ای بنویسید که طول ضلع مربعی را از ورودی دریافت کند و مساحت آن را حساب کند
مساحت مربع = یک ضلع ضربدر خودش = یک ضلع یه توان 2
👨💻 1 ساعت قبل کاربر ناشناس این تمرین رو مشاهده کرد
برنامه ای بنویسید که طول ضلع مربعی را از ورودی دریافت کند و مساحت آن را حساب کند
مساحت مربع = یک ضلع ضربدر خودش = یک ضلع یه توان 2
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)
Side=float(input("Enter Side: " ))
S=Side*Side
print("S=",S)
side_length = float(input("طول ضلع مربع را وارد کنید: "))
area = side_length ** 2
print("مساحت مربع:", area)
g = float(input("ضلع"))
print(g * g)
a = input("How long is the side of your square?")
a = int(a)
Area = (a*a)
print(Area)
a = float(input("enter square length :"))
b = a*a
print(" s = " , b)
a = int(input("Enter the length:"))
b = a * a
print("Result:" , b)
print(float(input("Enter the side of the square: "))**2)
جوابت را با Markdown بنویس و ثبت کن
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نامتوضیح کوتاهی بنویسید تا تیم بررسی کند.