How can we print table from 1 to 100 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can we print table from 1 to 100

2nd Jan 2017, 5:52 PM
Digvijay Wakle
Digvijay Wakle - avatar
3 Answers
+ 1
i want to print multiple array of 1 to 100
2nd Jan 2017, 6:32 PM
Digvijay Wakle
Digvijay Wakle - avatar
0
Could you reformulate. I don't understand what you're trying to do.
2nd Jan 2017, 6:00 PM
Nsyse
Nsyse - avatar
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"); } } }
3rd Jan 2017, 7:29 AM
Akash Middinti