Nested Loop Heart Pattern
/* Exercise 4: Create the following pattern using nested for-loops: ########## ## # # # # # # # # # ## # # ## # # # # # # # # # ## ########## */ void Main() { for (int i = 0; i < 1; ++i) { for (int j = 0; j < 1; ++j) { Console.Write( @" ########## ## # # # # # # # # # ## # # ## # # # # # # # # # ## ##########"); } } }
A screenshot shows a programming exercise asking the viewer to create a heart-shaped pattern using nested for-loops. The joke is that the intended pattern is printed directly as a string, making the loop exercise unnecessary and humorously defeating the purpose of the task. EN: A screenshot shows a programming exercise asking the viewer to create a heart-shaped pattern using nested for-loops. The joke is that the intended pattern is printed directly as a string, making the loop exercise unnecessary and humorously defeating the purpose of the task.
- @gentoomemes / 874 2022-08-30
- Type
- image
- Size
- 799×672 · 21.7 KiB
- Mood
- sarcastic
- Language
- en
- Added