محاسبه مساحت مستطیل
برنامه ای بنویسید که طول و عرض مستطیلی را از ورودی دریافت کند و مساحت آن را در خروجی چاپ کند
👨💻 1 ساعت قبل کاربر ناشناس این تمرین رو مشاهده کرد
برنامه ای بنویسید که طول و عرض مستطیلی را از ورودی دریافت کند و مساحت آن را در خروجی چاپ کند
length = int(input("length :"))
width = int(input ("width :"))
print(length * width)
arz=float(input('arz:'))
tool=float(input("tool:"))
print(arz*tool)
tool=float(input("tool: "))
arz=float(input("arz: "))
soale=input("chi mikhai: ")
if soale=="مساحت":
print(arz*tool)
if soale=="محیط":
print(arz+arz+tool+tool)
#دریافت طول مستطیل از کاربر
length = int(input("please enter the length of rectangle:"))
#دریافت عرض مستطیل از کاربر
width = int(input("please enter the width of rectangle:"))
#محاسبه ی مساحت مستطیل
area = length * width
#چاپ مساحت در خروجی
print("the area of rectangle is" , area)
A = float(input("لطفا عرض را وارد کنید"))
print(A)
B = float(input("لطفا طول را وارد کنید "))
print(B)
C = (A*B)
print("جواب میشه ")
print(C)
length = float (input ('Enter length: '))
width = float (input ('Enter width: '))
area = length * width
print ('The area is:', area)
h = int(input("please enter height:"))
w = int(input("please enter weight:"))
print("area of rectangle is", (w*h))
arz = float(input("arz: "))
tool = float(input("tool"))
print("--------------------------------")
x =(arz * tool)
print(x)
tol = int(input("tol:"))
arz = int(input("arz:"))
s = tol * arz
print (s)
a=int(input('طول را وارد کنید = ')
b=int(input('عرض را وارد کنید = ')
s=(a*b)
print('مساحت شما',s)
جوابت را با Markdown بنویس و ثبت کن
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نامتوضیح کوتاهی بنویسید تا تیم بررسی کند.