# Drawing lines

• 2
• Locked
Everything starts with lines, including the path of an artist. But the path of a programmer begins with the study of loops. At this point, we need to master the for loop. It is convenient, simple, and helps us create. Let's use it to draw horizontal and vertical lines, consisting of ten 8s each.
You can't complete this task, because you're not signed in.
MrWaito
Level 5 , Santo Domingo, Dominican Republic
23 March, 00:48
Very confusing but finally got it 😵
furius72
Level 9 , Milan, Italy
23 October 2022, 17:28
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
ImDevin
Level 15 , Old Town, United States
2 April 2021, 20:51
solved it by using nested loops, but it's unnecessarily more work. Still, it was cool to figure it out to make it work! Happy Drawing :)
KARMA GURUNG
Level 5 , Wyken, United Kingdom
17 February 2021, 14:55
hint : use 2 seperate for loop.
Khongpak Phupkdee
Level 15 , Chiangrai, Thailand
25 January 2021, 16:00
I don't clear but now I can do this mission. Let's show the correct result to you Result:: 8888888888 8 8 8 8 8 8 8 8 8 8
Martzehh
1 June 2020, 00:43
WOW this task has a super weird description. In case anyone is confused by the wording..you're allowed to use 2 separate for loops to get this one done.
bob
Level 8 , Milan, Italy
22 May 2020, 16:04
haha. couldn't for the life of me understand why my horizontal had 11 8's and the vertical only had 9. good one. won't be making that mistake again. this thrown into your for loop might help someone who can't find the problem: if (i == 9) { System.out.println("8"); } else { System.out.print("8"); }
Enoma Uwaifo
Level 8 , Nigeria, Nigeria
13 March 2020, 13:13
The problem I am having with this exercise is that there's no visual example of how the out put will look like. i am kind of stucked here. I don't know if it will be like this: 8888888888 8 8 8 8 8 8 8 or like this: 8888888888 8 8 8 8 8 8 8 8 8 8
Daniel
Level 15 , Colnbrook, United Kingdom
5 January 2020, 13:18
Haha tricky one. I was displaying 9 lines because I wasn't starting the column on new row, but continuing from the previous row. I was WTF??!?! I'm displaying 9 rows and test passes, but if i'm displaying 10 rows it fails? good one
chinchillo
Level 6
14 December 2019, 15:02
This is confusing. Every smart person would expect 10 horizontal and 10 vertical eights. There have to be 11 vertical eights, because they don't count the horizontal line...