Write a java program to print the following pattern:
97531 7531 531 31 1
Answers
Answered by
19
Answer: The required java program is :-
public class Main {
public static void main(String[] args) {
for (int i=9 ; i>=1 ; i-=2) {
for (int j=i ; j>=1 ; j-=2) {
System.out.print(j);
}
System.out.print(" ");
}
}
}
Please mark it as Brainliest.
Answered by
0
this is the ans
int i, j ; plz put in the upwards
Attachments:
Similar questions
Social Sciences,
2 months ago
Hindi,
2 months ago
Math,
2 months ago
Economy,
4 months ago
Math,
4 months ago
Math,
10 months ago
Social Sciences,
10 months ago