Write a java program to print the table of 9 using for loop
Answers
Answered by
1
Answer:
Print the table of 9
for(I=1;I<=10;I++)
for(I=1;I<=10;I++){
for(I=1;I<=10;I++){Sopln("9×"+I+"="+(9*I));
for(I=1;I<=10;I++){Sopln("9×"+I+"="+(9*I));}
Output:
9×1=9
9×2=18
.
.
.
9×10=90
Answered by
1
Question:-
- Write a java program to print the table of 9 using for loop.
Program:-
class Table
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
for(int i=1;i<=10;i++)
System.out.println("9 x "+i+" = "+9*i);
}
}
Similar questions