+ 1

How I can add last two triangles in same line as first and second triangle

https://code.sololearn.com/cE62EH5a0DRh/?ref=app

21st Sep 2020, 10:07 PM
sankalp gupta
sankalp gupta - avatar
3 odpowiedzi
+ 3
sankalp gupta ya I have done that only! Just made a function that can be used again and again to act as a for loop! 🙂 For example: for (int i = 0; i < 10; i++) { System.out.println("*"); } Is same as, say(10, "*"); So to decrease the code size considerably, I made this function!
24th Sep 2020, 3:54 AM
Namit Jain
Namit Jain - avatar
+ 4
It's nice that you tried! 🙂👍 Here's what I made! https://code.sololearn.com/cg8r2CRxcNo3/?ref=app Try to understand it! If you are unable to do it then let me know!
21st Sep 2020, 10:31 PM
Namit Jain
Namit Jain - avatar
+ 1
This is advance for me can you do this with for loop only
22nd Sep 2020, 9:21 AM
sankalp gupta
sankalp gupta - avatar