Drawing a rectangle

• 4
• Locked
Expressive drawing using the modest tools of pseudographics is the same as minimalism in music. At least, some critics on Earth think so. Well, let's heed their words and do some drawing. Let's enter two numbers m and n, and draw a rectangle of eights. The rectangle will be m eights high and n eights wide.
You can't complete this task, because you're not signed in.
furius72
Level 9 , Milan, Italy
23 October 2022, 14:19
i tried tu put scanner inside the method "for" .... for (int m = scanner.nextInt(); m >=0; m--)..... but don't works.... at last i made for inside for with two int for (b = m; b > 0; b--)
Kiran Kumar Alisam
Level 7 , Erie, USA
6 April 2022, 20:31
I did the above code , not sure it tasks Task not met and its printing 8888 2 times in 2 lines
ImDevin
Level 15 , Old Town, United States
2 April 2021, 02:24
wow, somebody did this in February. btw, instruction for this task is a Fail! had no idea what they were asking for. If it wasn't for others' comment, I would have wasted even more time trying to figure out what they were asking us to do. thanx for leaving helpful comments!
Nathan Guidry
Level 6 , Lake Charles, United States
14 May 2021, 14:35
wow you were the last to comment in April, now I'm here in may.
KARMA GURUNG
Level 5 , Wyken, United Kingdom
17 February 2021, 14:20
continuously print 8 (n) no. of times in single line, once it done change the line repeat it for (m) no. of times hint : double for loop
Khongpak Phupkdee
Level 15 , Chiangrai, Thailand
25 January 2021, 15:19
I cleared about this mission this mission doesn't want m x n = 8 they want to see 8 in this result such as input>>> n = 5 , m = 3 Result:: 888 888 888 888 888 ==OR== input>> n = 2, m = 10 Result:: 8888888888 8888888888 .... I think It can help you to understand... Good Luck
Cristian
Level 13 , Ploiesti, Romania
31 October 2020, 18:26
A m x n rectangle made of eights!
Lex Icon
Level 17 , Sofia, Bulgaria
24 September 2020, 12:17
Seems, the conditions were being described by a very lazy person as it could have been described a bit more detailed, considering we don't deal with the geometry on a daily basis, and neither all of us Native EN speakers. So, the task wasn't hard, the hard part was to figure out what they want from us. Nevertheless, the extra skills of being able to understand poorly explained description have been achieved.
Khongpak Phupkdee
Level 15 , Chiangrai, Thailand
25 January 2021, 15:08
I think so
Roman Grygorczuk
Level 19 , Cracow, Poland
21 August 2020, 17:11
I don't understand this - The program should display a n x m rectangle made of eights. 3*4 = 12, so maybe rectangle of 12th?
Roman Grygorczuk
Level 19 , Cracow, Poland
21 August 2020, 17:25
Ok, I believe I got it, three rows and 4 columns
Lucas Hoage
Level 14 , Savannah, United States
26 May 2020, 04:07
It was so absolutely obvious once I moved the next line within the loop what I was doing wrong. My code was right, but new lines were being created before numbers. What it tells me is that the compiler truly does go line by line.
Jimmy Phan
Level 7 , Atlanta, United States
24 October 2019, 17:57
Not sure if this will really help anyone out but; I renamed m as rows and n as columns. It might help you get a better understanding of which loop is doing what.