class Main { public static void main(String[] args) {
for(int i=1;i<=4;i++){
System.out.print("*");
}
System.out.println("");
for(int j=1;j<=4-2;j++)
{
for(int i=1;i<=4;i++)
{
if(i==1 || i==4)
{
System.out.print("*");
}
else
{
System.out.print("");
}
}
System.out.println();
}
for(int i=1;i<=4;i++){
System.out.print("*");
}
System.out.println();
}
}
My Output:
** **
I badly need to know how to get this Expected Output:
** **
Aucun commentaire:
Enregistrer un commentaire