TO PRINT PATTERN TYPE 11

*
**
***
****
***
**
*



class Pattern11
{
public static void main(String[] args)
{  int k=0;
for(int i=1;i<=7;i++)
{  if(i<=4)
k++;
else
k--;
for(int j=1;j<=7;j++)
{  if(j<=k)
{
System.out.print("*");
}
    else
System.out.print(" ");
}
System.out.println();
}
}
}

Comments

Popular posts from this blog

Problem Statement Of Real Estate Use Cases

Problem Statement Of Bank Marketing analysis

Hadoop