Calculate the rectangular environment
Write a program that receives a rectangular length and width and calculates and prints its surroundings
Rectangular environment: width * 2 + length * 2
Write a program that receives a rectangular length and width and calculates and prints its surroundings
Rectangular environment: width * 2 + length * 2
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
a = int(input("hight:")) w = int(input("whidth:")) print((a + w) * 2)
def main(): # Get the length and width of the user length = float(input("لطفاً طول مستطیل را وارد کنید: ")) width = float(input("لطفاً عرض مستطیل را وارد کنید: ")) # Calculate the rectangular environment perimeter = 2 * (length + width) # Printing results print(f"محیط مستطیل با طول {length} و عرض {width} برابر است با: {perimeter}") # Implementation of the program main()
A = int(input('طول')) B = int(input('عرض')) A = A * 2 B = B * 2 C = A + B print( C )
tole =int(input("enter the tole:")) arez=int(input("enter the arez:")) result=tole+arez result2=result*2 print(result2)
class Math: def __init__(self,tole,arze): self. tole=tole self.arze=arze def Solve(self): return (self.tole+self.arze)*2 tole=int(input("enter tole:")) arze=int(input("enter arze:")) obj=Math(tole,arze) print(obj.Solve())
def Mohit(arz, tool): return arz *2 + tool*2 arz = int(input("Arz Mostatil :")) tool = int(input("Tool Mostatil :")) print(Mohit(arz, tool))
Length = float(input("Length:")) Width = float(input("Width:")) print((Length*2)+(Width*2))
Submitting answers is currently unavailable.
Write a program that gets 3 numbers and prints the most in the output
Write a program that receives a number and prints the following figure according to the number received: Number: 55555 4444 333 2 2 1
Write a program that receives an email address and separates the various sections as follows and prints on the output example: email: [email protected] info amirhn.ir Example: email: [email protected] username gmail.com
Write a program that prints each student's name according to the list below, and as much as his / her name, the star of his name prints the question. Try to use the nested rings Amir 5hooshang 7rez ...
Write a program that receives the radius of the circle and prints its area and environmental area = radius * Pi (3.14) circle environment = diameter (radius * 2) * Pi (3.14)
Write a program that receives a solar date from the input (in the format of yyyy/mm/dd). Then convert the date to AD and print in the output
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.