Timeline for Printing concentric squares of numbers
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 7 at 21:13 | comment | added | chux |
a = (i >= n) ? m - i - 1: i; --> consider moving to outside the for (int j = 0; j < m; ++j) loop.
|
|
Aug 7 at 21:12 | comment | added | chux |
Little reason to declare a, b so early. Consider defining when needed: a = (i >= n) ? m - i - 1: i; --> int a = (i >= n) ? m - i - 1: i;
|
|
Nov 12, 2018 at 16:08 | vote | accept | Nehal Samee | ||
Nov 11, 2018 at 18:49 | history | edited | Calak | CC BY-SA 4.0 |
added 9 characters in body
|
Nov 11, 2018 at 16:15 | history | answered | Calak | CC BY-SA 4.0 |