编写程序,提示用户输入秒数,每隔一秒显示提示剩余的秒数的信息,并在时间结束时终止程序。
以下是运行示例:Enter the number of second:3
2 seconds remaining
1 seconds remaining
Stopped
Java简单问题 编写小程序
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
编写程序,提示用户输入秒数,每隔一秒显示提示剩余的秒数的信息,并在时间结束时终止程序。
以下是运行示例:Enter the number of second:3
2 seconds remaining
1 seconds remaining
Stopped