Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: #include <stdio.h> int main() { int x,i,j,z[40][40]; scanf("%d",&x); for(i=0;i<x;i++) { for(j=0;j<i;j++) { if(i==1) { z[i][j]==1; } else if(j==x || j==1) { z[i][j]==1; } else if(j>1 || j<x) { z[i][j]=z[i-1][j-1]+z[i-1][j]; } } } for(i=0;i<x;i++) { for(j=0;j<i;j++) { printf("%d",z[i][j]); } printf("\n"); } } this mine,it false,can you help me,sorry for my bad … |
The End.