Table form 1 to 20
package loops;
public class TablesFrom1to20 {
public static void main(String[] args) {
for(int j = 1; j<=10;j++) {
int tableof = j;
for(int i = 1; i<=20;i++ ) {
System.out.print(tableof * i+" ");
}
System.out.println();
}
}
}
package loops;
public class TablesFrom1to20 {
public static void main(String[] args) {
for(int j = 1; j<=10;j++) {
int tableof = j;
for(int i = 1; i<=20;i++ ) {
System.out.print(tableof * i+" ");
}
System.out.println();
}
}
}
Comments
Post a Comment