plz help me i dont get it explain it to me more easily plz.
I DONT GET IT
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Anonymous #10583708
7 September 2020, 17:46
There are a few ways to do this, but it's really just asking you to use a print output command to display the messages on different lines.
The answer is to use one of the two print commands we've already learned in previous lessons to output to a screen - specifically the one the prints output to the next line instead of on the same line. To do this 4 times, with what has been learned so far, just repeat that same print method 4 times where it states the new code should go. You do not need to alter the code anywhere else.
Another way to do this, if you know how, is to use a for loop that runs the same print command (mentioned above) 4 times.
Either way, it will pass the requirement verification.
0
Misiu
9 August 2020, 21:53
Method print() says: give me a string, and I will display it 4 times.
So if a string would be "abc" then the method would give output:
abc
abc
abc
abc
Instruction: print("Java is easy to learn!"); says:
Hey, method print(). Here you have a string to display: "Java is easy to learn!". So do your work with that string (display the string 4 times).
The same say next two lines.
0