
13579 1357 135 13 1 pattern program in java

Here is your Example:-
package Compare;
public class PatternDemo {
public static void main(String [] args){
int c=10;
for(int i=0;i<5;i++){
for(int j=1;j<c;j=j+2){
System.out.print(j);
}
c=c-2;
System.out.println();
}
}
}
Output:
13579 1357 135 13 1
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.