package Forloopbase;
public class Forloop {
public static void main(String[] args) {
// TODO Auto-generated method stub
for(int line = 1; line<=5; line++)
{
for(int col=1; col<=5; col++)
{System.out.print(" * ");}
System.out.println();
} }}
out put -
Top comments (0)