write a program in java to print the pattern using nested for loop
Attachments:
Answers
Answered by
3
Answer:
Not writing the whole program, just the logic for the pattern.
for(int i = 7; i > 0; i -= 2){
for(int j = 1; j <= i; j++){
System.out.print(j+" ");
}
System.out.println();
}
Similar questions
English,
6 months ago
Math,
6 months ago
English,
6 months ago
Science,
11 months ago
Computer Science,
1 year ago