Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n,k,j,a[50][50],max;
- max=a[1][1]
- cin>>n;
- for(k=1;k<=n;k++)
- for(j=1;j<=n;i++)
- cin>>a[50][50];
- cout<<"elementele matricei sunt:"<<endl;
- for(k=1;k<=n;k++)
- {
- for(j=1;j<=n;j++)
- cout<<a[k][j]<<" ";
- cout<<endl;}
- cin>>l;
- for(j=1;j<=n;j++)
- if(max<a[k][j])
- max=a[k][j];
- cout<<"numarul maxim este";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement