Computer Science, asked by sgurvail87, 9 months ago

answer it fast its urgent

Attachments:

Answers

Answered by akshayamca14
0

Answer:

1.

public class Main

{

public static void main(String[] args) {

 

 for(int i =1;i< 5;i++){

     

     for(int j=1; j<=i; j++)

     {

         System.out.print("*");

     }

     System.out.println("\n");

 }

 

}

}

2.

public class Main

{

public static void main(String[] args) {

 

 for(int i =1;i< 4;i++){

     

     for(int j=1; j<=4; j++)

     {

         System.out.print("@");

     }

     System.out.println("\n");

 }

 

}

}

Explanation:

Similar questions