Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: #include<stdio.h> void main() {int n,i,j,k,a=1,b=1,c=1,nc; printf("enter the number:"); scanf("%d",&n); nc=n; for(i=0;i<n;i++) {for(k=0;k<nc;k++) printf(" "); printf("1"); for(j=0;j<i;j++) { c=c*(i-j)/(j+1); printf(" %d",c); } printf("\n"); nc--; } } //akhil ratheesh, output as pyramid |
The End.