Skip to main content
Post Closed as "Duplicate" by user45941, Shaggy, Wheat Wizard, Peter Taylor code-golf
edited tags
Source Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661

The following is the rhombus sequence.

1
121
12321
1234321
123454321
12345654321
1234567654321
123456787654321
12345678987654321

Your task is to output this, taking no input and using standard output methods (STDOUT, list of numbers or list of strings, etc.).

However, since this is , there'sThere's a hitch. You may only use up to one loop - no nested loops. Recursion counts as a loop, so you can either recurse or loop, not both. Non-standard languages will be dealt with on a case-by-case basis.

This is , so shortest program in bytes wins. This is , so you may not take any input whatsoever.

The following is the rhombus sequence.

1
121
12321
1234321
123454321
12345654321
1234567654321
123456787654321
12345678987654321

Your task is to output this, taking no input and using standard output methods (STDOUT, list of numbers or list of strings, etc.).

However, since this is , there's a hitch. You may only use up to one loop - no nested loops. Recursion counts as a loop, so you can either recurse or loop, not both. Non-standard languages will be dealt with on a case-by-case basis.

This is , so shortest program in bytes wins. This is , so you may not take any input whatsoever.

The following is the rhombus sequence.

1
121
12321
1234321
123454321
12345654321
1234567654321
123456787654321
12345678987654321

Your task is to output this, taking no input and using standard output methods (STDOUT, list of numbers or list of strings, etc.).

There's a hitch. You may only use up to one loop - no nested loops. Recursion counts as a loop, so you can either recurse or loop, not both. Non-standard languages will be dealt with on a case-by-case basis.

This is , so shortest program in bytes wins. This is , so you may not take any input whatsoever.

edited tags
Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661
Post Reopened by Stephen, ZaMoC, Mr. Xcoder, Mayube, totallyhuman
Fixed title
Link
Stephen
  • 14k
  • 3
  • 52
  • 117

Is it possible to print rhombus numbers series using single for loop? Output Rhombus Sequence without Nested Loops

Made this on-topic
Source Link
Stephen
  • 14k
  • 3
  • 52
  • 117
Loading
Post Closed as "Not suitable for this site" by Giuseppe, Mr. Xcoder, Toto, ბიმო, TheLethalCoder
Source Link
Shad
  • 241
  • 1
  • 5
Loading