Joined
Last Seen
-2 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
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 #36.9K
#include<stdio.h> #define ROW 5 #define COL 5 int main(){ int array[ROW][COL]; int r=0, c=0; for (r=0; r<ROW; r++){ for (c=0; c<COL; c++) array[c][r] = (c+1)-(r+1); } for (r=0; r<ROW; r++){ for (c=0; c<COL; c++) printf("%5d", array[c][r]); printf("\n"); } printf("\n\n"); system("pause"); return 0; } i need help in this code I … |