You are on page 1of 2

#include "stdafx.

h"
#include <iostream>
#include<stdio.h>
using namespace std;
int mat[3][3];
int mat2[3][3];
int fila, col;
int fila2, col2;
int sum;
int sum2;
void ingreso()
{
fila = 0; col = 0;
sum = 0;
while (fila < 3)
{
col = 0;
while (col < 3) {
cout << "ingrese dato";
cin >> mat[fila][col];
sum = sum + mat[fila][col];
}
col = col + 1;
}
fila=fila+1;
}

fila2 = 0; col2 = 0;
sum2 = 0;
while (fila2 < 3)
{
Col2 = 0;
while (col2 < 3) {
cout << "ingrese dato";
cin >> mat2[fila][col];
sum2 = sum2 + mat2[fila2][col2];
}
Col2 = col2 + 1;
}
Fila2 =fila2+1;
}
If(mat1>mat2){
Cout<<”matriz uno es mayor";
Else
Cout<<”matriz dos es menor”;

void main()
{
ingreso();
system("pause");
}

You might also like