Computer Science, asked by swati0325, 18 hours ago

Write two separate programs to display the following pattern​

Attachments:

Answers

Answered by sahupriyanshu710
0

Answer:

a) public class Pattern{

public static void main(String args[]){

for(int i=1;i<=7;i+=2){

for(int k=7;k>=i;k--){

System.out.print("1 ");

}

System.out.println();

}

}

}

Similar questions