please help me out..... ✌✌✌✌
Attachments:
Anonymous:
ya sure
Answers
Answered by
3
import Java.io.*
Class b
{
public static void main(String args[])throws Exception
{
int i, j,k p;
for(i=1;i<=3;i++)
{
for(j=1;j<=7;j++)
{
if(i!=2)
System. out. print(" ");
System. out. print("**");
System.out.print("*);
if(i==2)
{
for(k=1;k<=9;k++)
System. out .print("*");
}
if(i==3)
{
for(p=1;p<=7;p++)
System. out. print(" ");
System.out.print("*");
System.out.print("**");
}
System.out.println();
}
}
Class b
{
public static void main(String args[])throws Exception
{
int i, j,k p;
for(i=1;i<=3;i++)
{
for(j=1;j<=7;j++)
{
if(i!=2)
System. out. print(" ");
System. out. print("**");
System.out.print("*);
if(i==2)
{
for(k=1;k<=9;k++)
System. out .print("*");
}
if(i==3)
{
for(p=1;p<=7;p++)
System. out. print(" ");
System.out.print("*");
System.out.print("**");
}
System.out.println();
}
}
Answered by
1
BYE LAST TIME BRAINLEST BNA DO !
Similar questions