+ 1

Can someone help me to find the mistake of this code please 😪😪

I want to print * *** ***** ******* ********* But my code is wrong. I can't find the mistake 😪😪 Here is that code public class Program { public static void main(String[] args) { for (int i=0; i<10; i=+2){ for (int j=10; j>i; j=-2){ System.out.print(" "); } for (int j=0; j<=i; j++){ System.out.print("*"); } System.out.println(); } } }

22nd Apr 2020, 10:33 AM
Nirmana Dasunpriya
Nirmana Dasunpriya - avatar
2 Antworten
+ 2
Thank you so much ❤
22nd Apr 2020, 10:40 AM
Nirmana Dasunpriya
Nirmana Dasunpriya - avatar