Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Didziausias(int A[][50], int n, int & nr){
- int did = 0;
- for(int i = 1; i <= n; i++){
- for(int j = n - i; j <= n; j++){
- if (A[i][j] > did){
- did = A[i][j]; // kuris elementas didziausias po salutine istrizaine
- nr = i; // kuri eilute
- }
- }
- }
- cout << did << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment