How to print * pattern in C programming?
C PROGRAM TO PRINT * PATTERN
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
Post a Comment