Calculate the volume of the rectangular cube
Write a program that receives the length, width and height of the rectangular cube and calculate its volume
Cuban volume of rectangle = length * width * height
Write a program that receives the length, width and height of the rectangular cube and calculate its volume
Cuban volume of rectangle = length * width * height
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
s=int(input('لطفا طول مستطیل را وارد کنید')) b=int(input('لطفا عرض مستطیل را وارد کنید')) c=int(input('لطفا ارتفاع مستطیل را وارد کنید')) if s>0 , b>0 , c>0 : else : print('error') p=s*b*c print(p)
t=float(input("t:")) a=float(input("a:")) e=float(input("e:")) ha=(t*a*e) print(ha)
n1=float(input("Enter first number: ")) n2=float(input("Enter second number: ")) n3=float(input("Enter third number: ")) print(n1*n2*n3)
def masahat_rectangle(): length = int(input("Enter the length of the rectangle: ")) width = int(input("Enter the width of the rectangle: ")) height = int(input("Enter the height of the rectangle: ")) print("The volume of the rectangle is: ", length * width * height) masahat_rectangle()
tool = float(input("lotfan andazeye toole ra bar hasbe cm vared konid: ")) arz = float(input("lotfan andazeye arz ra bar hasbe cm vared konid: ")) ertefa = float(input("lotfan andazeye ertefa ra bar hasbe cm vared konid: ")) print("hajme mokeab = ", tool * arz * ertefa , "cm**3")
tole=float(input("enter the toel:")) arze=float(input("enter the arze:")) artefa=float(input("enter the artefa:")) result=tole*arze*artefa print(result)
def calculate_volume(length, width, height): """محاسبه حجم مکعب مستطیل.""" return length * width * height def main(): try: # Get the length, width and height of the user length = float(input("لطفاً طول مکعب مستطیل را وارد کنید: ")) width = float(input("لطفاً عرض مکعب مستطیل را وارد کنید: ")) height = float(input("لطفاً ارتفاع مکعب مستطیلی را وارد کنید: ")) # Volume calculation volume = calculate_volume(length, width, height) # Display the result print(f"حجم مکعب مستطیل برابر است با: {volume:.2f}") except ValueError: print("لطفاً اعداد صحیح یا اعشاری وارد کنید.") # Implementation of the main function if __name__ == "__main__": main()
Submitting answers is currently unavailable.
Write a program that receives the square side length from the input and calculates its area of square area = a side of its own = a side of a power 2.
Write a function that returns the number of a character in a string. To this question you should not use ready -to -use functions ("hooshang", "O") #2
Write a program that receives any professors including name, age and city from the entrance.
Write a program that obtained a person's / BMI body / BMI formula and, according to the information below, shows the status of the person BMI = w / h * h formula = weight divided by second power BMI ...
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.