Printing a Table in Java Using Nested Loops

preview_player
Показать описание
Use nested loops to print a table of values
Рекомендации по теме
Комментарии
Автор

Thank you, you just save me from failing

drakemanuel
Автор

Not exactly what I was looking for but this was helpful, thanks.


for(int row=1;row<=3;row++){
for(int col=1;col<=5;col++){
int rowTimesColumn=row*col;
System.out.printf("%-2s ", rowTimesColumn);
}
System.out.println();
}

catea