Program to pring pattern

/*Program to pring following pattern using one printf statement
*
* *
* * *
* * * *
*/

#include<stdio.h>
#include<conio.h>
int main()
{
  clrscr();
  printf("*\n* *\n* * *\n* * * *");
 
  getch();
  return 0;
}

To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.

No comments:

Post a Comment