Create a program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the year that they will turn 100 years old.
Extras:
- Add on to the previous program by asking the user for another number and printing out that many copies of the previous message. (Hint: order of operations exists in Python)
- Print out that many copies of the previous message on separate lines. (Hint: the string "\nis the same as pressing the ENTER button)
創建一個程序,要求用戶輸入他們的姓名和年齡。打印給他們的消息,告訴他們他們將滿100歲的年份。
附加功能:
- 通過詢問用戶另一個號碼並打印出先前消息的許多副本來添加到先前的程序中。(提示:操作順序在Python中存在)
- 在單獨的行上打印出先前消息的許多副本。(提示:字符串"\n與按ENTER按鈕相同)
Chacrater input字符輸入 << 
Previous Next >> Discussion討論區-1