0
How can we print table from 1 to 100
3 Answers
+ 1
i want to print multiple array of 1 to 100
0
Could you reformulate. I don't understand what you're trying to do.
0
public class Program
{
public void static main(String[ ][ ] args) {
int[ ][ ] table = new int[ ][ ];
for (int i=1; i<=100; i++) {
for (int j=1; j<=100; j++) {
table[i-1][j-1]=i*j;
}
}
for (int i=1; i<=100; i++) {
for (int j=1; j<=100; j++) {
System.out.print(table[i-1][j-1] + " ");
}
System.out.println(" \n");
}
}
}