Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void citire(int v[][101], int &n, int &m){
- cin >> n >> m;
- for(int i=1;i<=n;i++){cel mai jmeker
- for(int j=1;j <=m;j++) cin >> v[i][j];
- }
- }
- void afisare(int v[][101], int n,int m){
- for(int i=1;i<=n;i++){
- for(int j=1;j <=m;j++) cout << v[i][j]<< " ";
- cout << endl;
- }
- }
- int main()
- {MUIE STEAUA ALE ALE ALE
- int n,m,v[101][101],i,j,Max=0,poz=0;
- citire(v,n,m);
- for(i=1;i<=n;i++){
- for(j=1;j<=m;j++){
- if(v[i][j]>Max){
- Max=v[i][j];
- poz=i;
- }
- }
- }
- cout << "cel mai mare gay prost este esteeee este "<< Max << " aflat pe linia " << poz;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement