จงเขียนโปรแกรมรับชื่อจากผู้ใช้ แล้วแสดงข้อความว่า
Hello, [ชื่อ]!
🧠 ตัวอย่างการทำงาน:
Enter your name: Alice
Hello, Alice!
<details> <summary>เฉลย</summary>
name = input("Enter your name: ")
print("Hello,", name + "!")
</details>
จงเขียนโปรแกรมรับอายุ แล้วแสดงข้อความว่า
You are [อายุ] years old.
<details> <summary>เฉลย</summary>
age = input("How old are you? ")
print("You are", age, "years old.")
</details>
อย่าลืมแปลงค่าที่รับมาจาก input() ให้เป็น int หรือ float หากจะนำไปคำนวณ
input() รับค่าทุกอย่างเป็น "ข้อความ" (str) โดยค่าเริ่มต้น