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
def get(): try: length = float(input('Enter lenght: ')) width = float(input('Enter width: ')) except ValueError: print('Just Number!') get() except: print('Error!') get() else: return length, width def main(): length, width = get() print('the primeter is {}'.format(2*(length+width))) main()
a = int(input('arz: '))
b = int(input('tol: '))
print(a * b)
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)
def Mohit(arz, tool): return arz *2 + tool*2 arz = int(input("Arz Mostatil :")) tool = int(input("Tool Mostatil :")) print(Mohit(arz, tool))
Submitting answers is currently unavailable.
1- The system randomly selects a number between 1 and 100 2- The user tries to guess the selected number 3- After each user guess, if the number entered is correct, the program will end. Otherwise the schedule ...
Write a program that prints an integers in the output. Get the desired interval from the input.
Write a function that receives some and checks whether the amount received is the email. If the email was True, otherwise the False return the email should contain @ before @ should be a phrase as a work name ...
Write the absentee presentation program: The teacher enters the students' names in the classroom every day in a file with the name of that day in the name of that day and in the TXT format, the teacher can enter the date by entering the date ...
Write a program that receives a text from the input and, like the example below, prints from the first to the first point Enter: My name is amirhossein. I live in tehran. My name is amirhossein
Using HTML and CSS, insert an image with the following features on the page.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.