+ 1
How can I put spaces between the numbers to understand the given table easily?? Is it possible to convert in vertical line??
Table upto 20 https://code.sololearn.com/cQ4uoIbNxtH3/?ref=app
5 Answers
+ 2
Matrix multiplication tables.
https://code.sololearn.com/cUZhbvLQOmKP/?ref=app
+ 2
Yash Chhimwal
You can change your Condition like this. If you want 10 rows and 20 columns
Note: For better view you can run this program on laptop.
public class NestedForLoop
{
public static void main(String[] args) {
for( int i= 1;i<=10;i++){
for( int j= 1;j<=20;j++){
System.out.print(i*j + " " );
}
System.out.println();
}
}
}
+ 1
Thanks.
+ 1
Is it possible to convert it in vertical lines??
+ 1
One last question, can I convert in matrix form, like 10 rows and 20 Coloumns ?? If yes then how can I??