Java Pattern 1

      No Comments on Java Pattern 1
import java.util.*;
class scan
{
	public static void main(String arg[])
	{   
	   int i,j;
	  for(i=1;i<=6;i++)
	  {
		  for(j=1;j<=i;j++)
		  {
			  System.out.print("* ");
		  }
		  System.out.println("");
	  }
	} 
}

OUTPUT:-

pattern

Leave a Reply

Your email address will not be published. Required fields are marked *