Calculate the brick required
Write a program that receives the length and width of the wall and calculates how many bricks do we need 4 x 8 bricks to build this wall?
Write a program that receives the length and width of the wall and calculates how many bricks do we need 4 x 8 bricks to build this wall?
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
x=float(input('Tool divar ra vared konid:')) y=float(input('Arz divar ra vared konid:')) # Brick area n=4*8 # Wall area f=x*y t=f/n print(t,'Ajor')
def required_brick(): """ تابع طول و عرض دیوار را میگیرد و میزان اجر مورد نیاز را برمیگرداند """ length = int(input("please etner the length :")) # Length width = int(input("please enter the width :")) # Width Rectangular_area = length * width # Wall cops Dimensions_brick = 8 * 4 # The area of the reward result = Rectangular_area / Dimensions_brick # Division to obtain the required reward return f"result : {result} brick" print(required_brick())
a = int(input()) b = int(input()) ajor = (a*b)/(4*8) print(ajor)
t= int(input("highte: ")) a=int(input("width: ")) ajor=4*8 divar=t*a print(divar / ajor)
function numberOfBricks(Walllength,Wallwidth) { //Brick area const Brick = 4*8; // Wall area const WallArea = Walllength * Wallwidth; const bricks = WallArea / Brick; return bricks; }
length = int(input("enter the length : ")) # length = طول width = int(input("enter the width :")) #width = عرض brick = (length*width)/32 #brick = اجر print(brick)
xajor = float(input("arz ajor:")) yajor = float(input("tool ajor:")) ajor = xajor * yajor print("msahat ajor = ", ajor) xdivar = float(input("arz divar:")) ydivar = float(input("tool divar:")) print("ajor mored nyaz = ", xdivar * ydivar // ajor, "dane ajor" )
Submitting answers is currently unavailable.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.