CodeGym /Java Course /Java Syntax /For loop in practice

For loop in practice

Java Syntax
Level 4 , Lesson 13
Available

"Today is my lucky day. I came up with five new tasks for you. I'm brimming with creativity. Good luck, my friend. You will need it..."

Comments (68)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
nealgoogs Level 21, Eliot, United States
16 August 2024
Question 4 is confusing. Show the output of what you want please.
tri bui Level 6, Saigon, Viet Nam
25 May 2024
piece of cakes
rags 3 Level 5, Wichita, United States Expert
30 April 2024
I had a problem with this. took me a minute to figure out which loop was running which part. but i thought for some reason the the first loop was continuously running tell the System.out.println() but it doesn't first outer loop controls the inner loop printing the 8 or whatever. understanding this was hard.
Luke Level 5, Saint Paul, United States
18 February 2024
I'll go into more detail in each individual problems discussion section but the most important thing in these examples is understanding when to use

System.out.println(); //begins a new line after executing
and when to use

System.out.print(); //does not begin a new line or add any spacing after executing
Once you understand when to use which of those print statements it becomes very simple to create "shapes"
curi0usmind Level 9, Switzerland Expert
6 September 2023
It's so much fun
Krzysztof Kosała Level 21, Wejherowo, Poland
23 July 2023
--- Drawing lines -- Solutions is the difference: System.out.print(); System.out.println();
rags 3 Level 5, Wichita, United States Expert
5 July 2023
I love it was clueless on for but was able to figure out how they work while using them then practice yes test can sometimes be touch but who cares not like there counting right; lol love it here
Cr4zySl4ckr Level 6, United States of America, United States
16 March 2023
What is in the red box is the output wanted not "The program should display numbers on the screen"
Hubert Matlak Level 34, Poland, Poland
14 December 2022
Not the first task when I get to the right result, but the test is not passed :( after running the code from the solution the test is passed, although the result is just the same as mine.
furius72 Level 9, Milan, Italy
23 October 2022
right 11 v 10 > !!! 8 8 8 8 8 8 8 8 8 8 8888888888 wrong!!!!! 8888888888 8 8 8 8 8 8 8 8 8 8