Академический Документы
Профессиональный Документы
Культура Документы
START
INITIALIZATION
INITIALIZATION
END
For loop sample
Sample program
1 111 1
2 222 2
3 333 3
4 444 4
5 555 5
For loop sample
int x,y;
for(x=1;x<=5;x++)
{
for(y=1;y<=5;y++)
{ 11111
System.out.print(x); 22222
} 33333
System.out.println(); 44444
} 55555
For loop sample
Sample Program
1 23 4 5
1 23 4 5
1 23 4 5
1 23 4 5
1 23 4 5
For loop sample
int x,y;
for(x=1;x<=5;x++)
{
for(y=1;y<=5;y++) 1 2 3 4 5
{ 1 2 3 4 5
System.out.print(y); 1 2 3 4 5
} 1 2 3 4 5
System.out.println(); 1 2 3 4 5
}
Program Simulation