Calculate rectangular area
Write a program that receives a rectangular length and width from the input and prints its area in the output
Write a program that receives a rectangular length and width from the input and prints its area in the output
let msg = 'error' alert(msg)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
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
arz = int(input("enter arz: ")) tol= int(input("enter tol: ")) masahat = (tol*arz) print ("masahat mesh",masahat)
Barberla
length = float(input("لطفاً طول مستطیل را وارد کنید: ")) width = float(input("لطفاً عرض مستطیل را وارد کنید: ")) # Calculate area area = length * width # Print area print("مساحت مستطیل برابر است با:", area)
let tol = prompt('Tol : ') let arz = prompt('arz : ') const an = tol * arz alert(an)
Answer Code File "/tmp/ipython-input-8-4096918500.py", Line 1 Let Tol = Prompt ('Tol:') ^ Syntaxerr: Invalid Syntax
a=float(input("Enter your length: "))
b=float(input("Enter your width: "))
area=(a*b)
print(area)
X=float(input("x: ")) y=float(input("Y: ")) print(y*X)
t=int(input("TOL MOSTATIL :")) A=int(input("ARZE MOSTATIL :")) masahat = t*A print("MASAHATE MOSTATIL =" , masahat)
arz = int(input('arz ') )
tool = int(input('tool ') )
c = tool * arz
print("masahat = ",c)))
Submitting answers is currently unavailable.
Write a program that receives the user's name, age and city and print on output
Write a program that gets distance to meters and converts to kilometers and shows at the output tips: each km = 1000 m
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.