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
a = int(input("hight:")) w = int(input("whidth:")) x = int(input("ertefa:")) print(a*w*x)
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)
Submitting answers is currently unavailable.
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.