Đi đến trình phátĐi đến nội dung chính
  • 5 năm trước
Python program to compute the GCD. greatest common divisor
Link to all related videos in the playlist "Python quick and dirty sample source code"

https://dailymotion.com/playlist/x74cx0

# Python program to convert feet and inches to centimeters.

print("Input your height: ")
height_feet = float(input("Feet: "))
height_inch = float(input("Inches: "))

height = height_feet + height_inch * 12
height_cm = round(height * 2.54, 1)

print(f"Your height is {height_cm} cm")

Danh mục

📚
Học tập
Bình luận

Được khuyến cáo