Lesson 13 of 34
Nested Loops: Star Patterns
10 min 30 XP
ഒരു loop മറ്റൊന്നിനുള്ളിൽ വെക്കാം. പുറത്തെ loop rows നിയന്ത്രിക്കുന്നു, അകത്തെ loop ഓരോ row-യിലെയും അക്ഷരങ്ങൾ print ചെയ്യുന്നു. Campus interviews-ൽ pattern ചോദ്യങ്ങൾ വളരെ സാധാരണമാണ്.
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.ഓരോ row-യിലും എത്ര spaces, എത്ര stars എന്നതിന്റെ ഒരു ചെറിയ പട്ടിക എഴുതൂ. Loop പരിധികൾ വ്യക്തമാകും.