Pattern Printing programs in java ?
Half Pyramid
*
* *
* * *
* * * *
* * * * *
public static void halfPyramid(int l) {
for (int i = 0; i < l; i++) {
for (int j = 0; j <= i; j++) {
System.out.print("* ");
}
System.o...
hashcodehub.hashnode.dev2 min read