محاسبه مساحت مستطیل
برنامه ای بنویسید که طول و عرض مستطیلی را از ورودی دریافت کند و مساحت آن را در خروجی چاپ کند
👨💻 0 ساعت قبل کاربر ناشناس این تمرین رو مشاهده کرد
برنامه ای بنویسید که طول و عرض مستطیلی را از ورودی دریافت کند و مساحت آن را در خروجی چاپ کند
width=int(input('what is width? : '))
lenght=int(input('what is lenght? : '))
print(width*lenght)
tul=4(print) arz=2(print) masahat=tul(4)*arz(2)
x = float(input("arz : "))
y = float(input('tool: '))
print(x * y)
l = int(input("length: "))
w = int(input("width: "))
s = l * w
print(f"space: {s}")
let l = prompt("length: ")
let w = prompt("width: ")
let s = `space: ${l * w}`
console.log(s)
tol_mos = input( " tol " ) arz_mos = input( " arz " ) tol = float(tol_mos) arz = float(arz_mos) masahat = 2*(tol + arz ) print ( "tol :", tol , "arz :" , arz ) print ( "masahat => " , masahat )/* کداتو توی این بخش بنویس فرقی نمیکنه چه زبان برنامه نویسی باشه، همرو پشتیبانی میکنیم :) البته قبلش این سه خط رو پاک کن */
test1 = float(input("enter the width of the rectangle:")
test2 = float(input("enter the length of the rectangle:")
print("the area is" , test1*test2)
# محاسبه مساحت مستطیل
x = int(input("Enter the length of the rectangle: "))
y = int(input("Enter the width of the rectangle: "))
print("Area = " , x*y)
p= int ( input("سن پدر"))
l= int ( input("سن پسر"))
m= (l-p)
print(m)
a = input("How long is your land?")
b = input("How wide is your land?")
a=int(a)
b=int(b)
Answer=(a*b)
print("The area of your land", Answer,"meters")
جوابت را با Markdown بنویس و ثبت کن
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نامتوضیح کوتاهی بنویسید تا تیم بررسی کند.