"I have great news for you. Here are some exercises to reinforce your skills. Work on them every day, and your competence will grow exponentially. They were specially designed for IntelliJ IDEA."
4
Task
New Java Syntax,
level 4,
lesson 10
Locked
Decent pay
Using a loop to display the following phrase one hundred times:
"I will never work for peanuts. Amigo"
Display each value on a new line.
4
Task
New Java Syntax,
level 4,
lesson 10
Locked
Somewhere in the middle
Use the keyboard to enter three numbers, and then display the middle number. In other words, not the largest and not the smallest.
If all the numbers are equal, display any one of them.
4
Task
New Java Syntax,
level 4,
lesson 10
Locked
Adding
Let's write a program where we need to enter numbers from the keyboard, and as soon as -1 is entered, then we display the sum of all the entered numbers on the screen and exit the program.
-1 should be included in the sum.
Hint: One of the solutions to this problem uses the following construct:
whi
int b = 0;
while (true){
int a = Integer.parseInt(bb.readLine());
if (a<=-1){
b = b+a;
System.out.println(b);
break; }
b=b+a;
}
please cna i get help as to why this SAYS
Be sure that the program works correctly with negative numbers.
Hi guys! To my mind, the Best way of learning the Codegym course is following.
(1) Solve tasks by your own, using the Codegym help section, comments, or even web search - its really ok! Get used to it.
(2) After you Verified a task, Download correct solution. >> Push the Help button in the task menu.
(3) Correct your own solution in efficient and short way.
Actually, it was the best way to correct my code and understand it.
Sometimes I had Bullshit-code, dont know how it worked %)))))
GO TO FULL VERSION