write a program to display tables from 1 to 10. (java only)
Answers
Answered by
2
Program :- [JAVA]
public class TableTo10
{
public static void main(String args [ ] )
{
int max = 10;
for (int i = 1, i <= max; i++)
{
for (int j = 1,; j <=max; j++)
{
System.out.println((i*j) + ''t'');
}
System.out.println();
}
}
}
Know these :-
(i * j) = Multiplies the value of the inner loop control variable with that of the outer loop control variable.
''\t'' = Tab using the escape sequence
Answered by
0
public class TableTo10
{
public static void main(String args [ ] )
{
int max = 10;
for (int i = 1, i <= max; i++)
{
for (int j = 1,; j <=max; j++)
{
System.out.println((i*j) + ''t'');
}
System.out.println();
}
}
}
Know these :-
(i * j) = Multiplies the value of the inner loop control variable with that of the outer loop control variable.
''\t'' = Tab using the escape sequence
Similar questions