public class Main{ public static void main(String []args){ int i,j,lines=3; for(i=1;i=lines;i++){ for(j=lines;j=1;j--){ if(j!=i) System.out.print(j); else System.out.print("*"); } System.out.println(""); } }}
Not registered? Create an account
Forgot Password?
Already a registered user? Login