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.

Challenge

+30 XP

n ಓದಿ Floyd's triangle print ಮಾಡಿ (n = 4): 1 2 3 4 5 6 7 8 9 10

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.