→ A simple Java program to print * in a pattern. class Star { public static void main(String args[]) { int i,j; for(i=0;i<5;i++) { for(j=0;j<=i;j++) { System.out.print("*"); } System.out.print("\n"); } } } Output: * ** *** **** *****
This is my blog channel in which you can find most of the programming codes. Maximum in C language.