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.
Scissors Paper Play: 1- The user chooses one between paper or scissors. 2- Select the system by random. 3- With the choice of user and system, the result is displayed and the user's rating is calculated 4- ... ...
Write a function that receives a string and checks all the letters. If all the letters of the string were small, otherwise False would return
Write a class that receives rectangular length, width and height and calculates its area and volume using different methods
CSS code to select all the following elements at once and change their background color to yellow<div class="yellow" id="box"></div><div class="yellow"></div><div class="yellow mybox"></div>Footer call to action
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.