C program to print the right half star pyramid pattern
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out * ** *** **** ***** ****** ******* ******** ********* ********** kodingwindow@kw:~$
C program to print the left half star pyramid pattern
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out * ** *** **** ***** ****** ******* ******** ********* ********** kodingwindow@kw:~$
C program to print the inverted right half star pyramid pattern
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ********** ********* ******** ******* ****** ***** **** *** ** * kodingwindow@kw:~$
C program to print the inverted left half star pyramid pattern
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ********** ********* ******** ******* ****** ***** **** *** ** * kodingwindow@kw:~$
What Next?
C program to print the star diamond pattern
C program to print the alphabets diamond pattern
C program to find the min and max of given numbers
Advertisement