-2
WAJP程序顯示消息。以下是可能的響應:WAJP基於依據給定的年齡,其顯示了不同的信息年齡
age is less than 16, say "You can't drive."
age is less than 18, say "You can't vote."
age is less than 25, say "You can't rent a car."
age is 25 or over, say "You can do anything that's legal."
這裏有一個樣品運行。請注意,一個人誰是16歲以下將顯示三個消息,一個16,一個是下了也正在18之下,一個25
這似乎是像一個家庭作業的問題。你有嘗試過嗎? – Prudhvi