Advertisement
Guest User

Untitled

a guest
May 21st, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n,k,j,a[50][50],max;
  8. max=a[1][1]
  9. cin>>n;
  10. for(k=1;k<=n;k++)
  11. for(j=1;j<=n;i++)
  12. cin>>a[50][50];
  13. cout<<"elementele matricei sunt:"<<endl;
  14. for(k=1;k<=n;k++)
  15. {
  16. for(j=1;j<=n;j++)
  17. cout<<a[k][j]<<" ";
  18. cout<<endl;}
  19. cin>>l;
  20. for(j=1;j<=n;j++)
  21. if(max<a[k][j])
  22. max=a[k][j];
  23. cout<<"numarul maxim este";
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement