輸入一個數字 - 1

“嗨,阿米戈。你做得很好。這是給你的新練習:編寫一個程序,從鍵盤接受一些數據並顯示使用該數據的文本:”

1
任務
Java Syntax,  等級 3課堂 8
上鎖
More conversions
Let's calculate the number of full feet in a certain number of inches. We'll create a special method (getFeetFromInches) to do this. Any remainder should be rounded. Thus, if we pass 243 inches to our method, then we will get only 20 feet, not 20.25.
3
任務
Java Syntax,  等級 3課堂 8
上鎖
Don't think about seconds…
If you stare at the second hand for a long time, you can feel how quickly and irretrievably time is slipping away.. Enough gawking at the second hand. Instead, let's figure out a task involving seconds.
6
任務
Java Syntax,  等級 3課堂 8
上鎖
Plan to conquer the world
"First, I'll complete the tasks, then I'm going to make a lot of money. Then I'll take over the world". We found this written in a modest young man's personal journal. Let's imagine he knows exactly when this will happen: we'll use the keyboard to enter a number (the number of years it will take to achieve his goal) and the name of the hopeful conqueror. Then we'll display an interesting phrase.