Please write a loop for this pattern of output
Open
1
2
3
4
Close
Open
4
6
7
8
Close
Open
9
10
Close
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pankajkumar PatelRank #181 · 13.4K reputationPosted Jan 23, 2020, 5:42 AM EST
You can do like following:
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 22, 2020, 4:55 PM EST
Kumuthini A.K18 reputationPosted Jan 22, 2020, 6:15 PM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 23, 2020, 4:51 PM EST