java pattern program 97 next line. 975. next line. 9753. next lne 97531
Answers
Answered by
1
class odd{ public static void main(){ for(int i=9;i>=1;i=i-2) { for(int j=1;j<=4;j++) { System.out.print(" "); } for(int j=9;j>=i;j=j-2) {
if(j!=9)
{ System.out.print(j);
} } System.out.println();
} }
}
if(j!=9)
{ System.out.print(j);
} } System.out.println();
} }
}
Similar questions