#include <iostream>#include <time.h>#include<stdlib.h>using namespace std;int fila, colum, num, i, j, f, c, reg, aux[9][9], aux1[9][9];int main (){ int nivel; int matriz[9][9]={{0,0,8,6,5,0,0,0,1},{0,0,2,4,0,0,0,9,6},{0,5,9,0,7,0,0,8,0},{9,4,0,0,0,5,1,7,0},{0,0,0,0,4,0,0,0,0},{2,6,0,8,1,0,0,3,9},{0,0,0,0,2,0,0,0,3},{0,8,1,0,0,0,2,0,7},{7,0,6,3,8,1,9,0,0}};do{ cout<<" "<<endl; cout<<"Presione 1 para jugar"<<endl; cin>>nivel; cout<<""<<endl; switch(nivel){ case 1: { for (int i=0;i<9;i++) for(int j=0;j<9;j++) matriz[i][j]; for (int i=0;i<9;i++) {for(int j=0;j<9;j++) cout<<matriz[i][j]<<"\t"; cout<<endl;} cout<<""<<endl; cout<<"Ingrese la ubicacion de la fila"<<endl; cin>>fila; cout<<"Ingrese la ubicacion de columna"<<endl; cin>>colum; cout<<"Ingrese el numero"<<endl; cin>>num; fila=fila-1; colum=colum-1; for(j=0;j<9;j++){ matriz[fila][j]; cout<<matriz[fila][j]; matriz[fila][j]=aux[fila][j]; } cout<<" "<<endl; for(i=0;i<9;i++){ matriz[i][colum]; cout<<matriz[i][colum]; } cout<<"\t"<<endl; break; } default:{ cout<<"Debe ingresar un valor valido"<<endl; cin>>nivel; } }}while((nivel<3)&&(nivel>0));system("pause");return 0;}