[CODE lang="java" title="split column"]public class LoopingProblemE {
public static void main(String[] args) {
int TOTAL_ROWS=4;
int TOTAL_COLUMNS=4;
int TOTALC=4;
int TOTALR=1;
for(int j=1;j<=TOTAL_COLUMNS;j++){
for (int i=1;i<-TOTAL_ROWS;i++) {
System.out.print(j+ ">=" + i+" ");
}
for (int n=1;n<=TOTAL_ROWS;n++) {
System.out.print(j+ ">=" + n + " ");
}
for(int k=1;k<=TOTALC;k++){
for(int y=1;y<=TOTALR;y++){
System.out.print(j+">=" +j+" ");
}
}
System.out.println(" ");
System.out.println();
}
}
}
[/CODE]
HI all , my output comes just the way it is...but its not splitting the expected image output
thank you
public static void main(String[] args) {
int TOTAL_ROWS=4;
int TOTAL_COLUMNS=4;
int TOTALC=4;
int TOTALR=1;
for(int j=1;j<=TOTAL_COLUMNS;j++){
for (int i=1;i<-TOTAL_ROWS;i++) {
System.out.print(j+ ">=" + i+" ");
}
for (int n=1;n<=TOTAL_ROWS;n++) {
System.out.print(j+ ">=" + n + " ");
}
for(int k=1;k<=TOTALC;k++){
for(int y=1;y<=TOTALR;y++){
System.out.print(j+">=" +j+" ");
}
}
System.out.println(" ");
System.out.println();
}
}
}
[/CODE]
HI all , my output comes just the way it is...but its not splitting the expected image output
thank you