Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Program to display the following pattern:
- *
- **
- ***
- ****
- *****
- */
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int i, j;
- clrscr();
- for(i = 0; i<4; i++) {
- for(j = 0; j <= i; j++)
- printf("*");
- printf("\n");
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment