Lesson 6 of 24
Nested Loops: Patterns
9 min 30 XP
बाहरी loop rows संभालता है, अंदरूनी loop columns। string(n, '*') n stars की string बनाता है, जिससे patterns आसान हो जाते हैं।
Example: edit me and press Run
Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.