morgehnleigh6439 morgehnleigh6439
  • 13-07-2020
  • Computers and Technology
contestada

Write the code to read 3 input values for the length, height and width of a cuboid, then calculate the area and circumference.

Respuesta :

frknkrtrn
frknkrtrn frknkrtrn
  • 15-07-2020

Answer:

length = float(input("Enter the length: "))

height = float(input("Enter the height: "))

width = float(input("Enter the width: "))

area = 2 * (length * height + height * width + width * length)

circumference = 4 * (length + height + width)

print("The area is: " + str(area))

print("The circumference is: " + str(circumference))

Explanation:

*The code is in Python.

Ask the user to enter the length, height and width

Calculate the area and circumference using the formulas and print them

Answer Link

Otras preguntas

A moraine is made up of ________
how does crop rotation help preserve soil !!!!!!!!!!!!!!!!! the answers are 1. it holds water near the roots of plants 2. it keeps soil from blowing away
A line that includes the point(-9, -6)has a slope of 0 .What is its equation in slope -intercept form?
In a volcanic eruption, carbon dioxide dissolved in magma is released into the atmosphere during the explosion. What transition is described here?
at what time in history did the caste system dominate the society of india
Write a word problem whose solution is |-70| = 70
Please Help Me with these problems; Thank you. So much for the help.
Whats the radius of a sphere with a volume of 972 pi?
How can a standard z-score be changed to a t-score?
If, as a beginning teacher, you are not sure how to handle a situation, leave your assigned area and go get another teacher. true false