Skip to content Skip to sidebar Skip to footer

Sheet Of Paper In Millimeters

I been asked to write a program that displays the dimensions of a letter-size (8.5 x 11 inches) sheet of paper in millimetres. There are 25.4 millimetres per inch. I need to use co

Solution 1:

Here is my answer to your assignment. I hope you get full marks.

# This is a program that displays dimensions of a letter-size
# sheet of paper in millimeters.

WIDTH = 8.5
HEIGHT = 11

MILLIMETERS_IN_INCHES = 25.4

print("The dimentions of a letter-size sheet of paper in millimeters is : {} x {}", WIDTH * MILLIMETERS_IN_INCHES, HEIGHT * MILLIMETERS_IN_INCHES)

Post a Comment for "Sheet Of Paper In Millimeters"