I'm newbie =)
I've made the code for the 1st and 2nd output but, my problem is i dont know how to do the codes for the 3rd and 4th. can anyone help me please? thanks so much my Friends!!!
1. * ** *** **** ***** import java.io.*; public class Asterisk1 { public static void main(String jpg[]) { int n=5; for(int x=1; x<=n; x++) { for(int y=1; y<=x; y++) { System.out.print("*"); } System.out.println(); } } } 2. ***** **** *** ** * import java.io.*; public class Ast1 { public static void main(String jpg[]) { int n=5; for(int x=1; x<=n; x++) { for(int y=5; y>=x; y--) { System.out.print("*"); } System.out.println(); } } } the problem are these 3. ***** **** *** ** * 4. * ** *** **** *****