# Input Name, Surname, Age, Weight, and Height
# And then show Name, Surname, Age, Weight, and Height with message in front of print
# And then show the type of the variables
# And then calculate BMI then show the value and the type of the variable

name = input("ให้นักเรียนพิมพ์ชื่อของตนเอง : ")
surname = input("ให้นักเรียนพิมพ์นามสกุลของตนเอง : ")
age = int(input("ให้นักเรียนพิมพ์อายุของตนเอง : "))
weight = float(input("ให้นักเรียนพิมพ์น้ำหนักของตนเอง : "))
height = float(input("ให้นักเรียนพิมพ์ความสูงของตนเอง : "))

print("ชื่อของคุณ :", name)
print("นามสกุลของคุณ :", surname)
print("อายุของคุณ :", age)
print("น้ำหนักของคุณ :", weight)
print("ความสูงของคุณ :", height)

print("ชนิดชื่อของคุณ :", type(name))
print("ชนิดนามสกุลของคุณ :", type(surname))
print("ชนิดอายุของคุณ :", type(age))
print("ชนิดน้ำหนักของคุณ :", type(weight))
print("ชนิดความสูงของคุณ :", type(height))

# Assuming that the height is in CMs and weight in Kilograms, Divide the height by 100 to get meters
# then using pow() to power the height in meters by 2

bmi = weight / pow(height / 100, 2)
print("BMI ของคุณ :", bmi)
print("ชนิด BMI ของคุณ :", type(bmi))
