Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- int x = 2;
- int ara[x][x] = {
- 2, 3,
- 6, 7
- };
- int r;
- int c;
- for(r = 0; r < x; r++){
- for(c = 0; c < x; c++){
- sort(ara[r], ara[r]+x, greater<int>());
- }
- }
- for(r = 0; r < x; r++){
- for(int c = 0; c < x; c++){
- printf("%d\n", ara[r][c]);
- }
- }
- printf("%d\n", ara[1][1]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement