+ 1
How I can add last two triangles in same line as first and second triangle
3 Respostas
+ 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!
+ 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!
+ 1
This is advance for me can you do this with for loop only