Hey I want to print a pattern and wrote a code for it but my Code is too bulky can you help me to optimise it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Hey I want to print a pattern and wrote a code for it but my Code is too bulky can you help me to optimise it

https://code.sololearn.com/cljIp7zguFth/?ref=app This is the code I want to replace the if else statements and make it using only for loop so can you all please help me to do so [SOLVED]

26th Jun 2020, 11:02 AM
Vijay Gunwant
Vijay Gunwant - avatar
6 Answers
+ 4
Kiibo Ghayal thanks for your answer
26th Jun 2020, 11:38 AM
Vijay Gunwant
Vijay Gunwant - avatar
+ 4
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 ok now I came to know how you all mention me 😁😂😂 while it's about a year I installed sololearn
26th Jun 2020, 11:40 AM
Vijay Gunwant
Vijay Gunwant - avatar
+ 4
~ swim ~ this was so bcause i was just focusing on that 10×10 pattern. and thanks for your advice I will definitely follow that
26th Jun 2020, 2:33 PM
Vijay Gunwant
Vijay Gunwant - avatar
+ 4
~ swim ~ thanks
26th Jun 2020, 2:49 PM
Vijay Gunwant
Vijay Gunwant - avatar
+ 3
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 Code Crasher ~ swim ~ hey i recreated this program in my new id please check it out and please give me a feed back too https://code.sololearn.com/cipk2zDOH3HU/?ref=app
26th Jun 2020, 2:39 PM
Vijay Gunwant
Vijay Gunwant - avatar
+ 2
Code Crasher thanks for your advice
26th Jun 2020, 2:33 PM
Vijay Gunwant
Vijay Gunwant - avatar