what is pattern java language

what is pattern  java language 

 import java.util.*;

class pattern

{

public static void main(String hg[])

{

int n,i,j;

Scanner o = new Scanner(System.in);

System.out.print("enter any number ");

n= o.nextInt();

for(i=1; i<=n; i++)

{

for(j=1; j<=i; j++)

{

System.out.print("*");

}

System.out.println(" ");

}

}

https://khoobstudy.blogspot.com/2022/11/write-program-to-hello-word.html

No comments

Powered by Blogger.