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){
- cin >> n >> m;
- for(int i=1;i<=n;i++){
- for(int j=1;j <=m;j++) cin >> v[i][j];
- }
- }
- void afisare(int v[], int n){
- for(int i=1;i<=n;i++){
- for(int j=1;j <=m;j++) cout << v[i][j]<< " ";
- cout << endl;
- }
- }
- int main()
- {
- int n,m,v[101][101],i,j,Max=0,oviseful=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];
- oviseful=i;
- }
- }
- }
- cout << "cel mai mare numar este "<< Max << " aflat pe pozitia " << oviseful;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement