Write two separate programs to display the following pattern
Attachments:
Answers
Answered by
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
Science,
9 hours ago
Environmental Sciences,
9 hours ago
Environmental Sciences,
9 hours ago
English,
18 hours ago
Math,
8 months ago
English,
8 months ago