Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 1
- Downvoting Members
- 4
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: [CODE]#include<stdio.h> #include<conio.h> int main() { int i,j,k,cnt=0; clrscr(); for(i=5;i>=1;i--) { for(j=1;j<=i;j++) { printf("*"); } for(k=i;k<5;k++) { printf("S"); } for(k=i+1;k<5;k++) { printf("S"); } if(cnt<2) { for(j=1;j<=4;j++) { printf("*"); } cnt++; } else { for(j=1;j<=i;j++) { printf("*"); } } printf("\n"); } getch(); return 0; }[/CODE] |
The End.