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.
Comments (22)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Kiran Kumar Alisam
Level 7 , Erie, USA
6 April, 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.
Asma Sadia
Level 15 , Brooklyn, United States
9 October 2019, 05:04
Don't print n*m. It just wants you print the number eight.
Sam
Level 13 , ELIZABETH, United States
15 November 2019, 13:03
they should have used numbers that does not coincidentally multiplies to 8
aem
Level 22 , Amsterdam, Netherlands
4 July 2020, 16:14
I'm proud of you @Asma. You made my day...I thought n*m. So, that took me a lot of time..until I read your comment ;)
Sean Nigito
Level 7 , Newark, United States
12 August 2020, 15:17
yeah they should have picked different numbers for the example