How to print * pattern in C programming?

       C PROGRAM TO PRINT * PATTERN

                                                    Best C programming app is Dev c++

How to print * pattern in c programming ?

To print * pattern in c we have to write the program given below:

_____________________________

#include<stdio.h>
int main()
{
printf("  *  \n");
printf(" *** \n");
printf("*****");

}

_____________________________


Output:-   *
                ***
              *****


The program and the output will be displayed like this as given below:






Thanks for your participation, follow my blog for more C programs...

Comments

Popular Posts