martes, 5 de noviembre de 2019

Programa 25

#include <stdio.h>
#include <iostream>
#include <windows.h>
using namespace std;

void gotoxy(int x,int y){
HANDLE hcon;
hcon=GetStdHandle(STD_OUTPUT_HANDLE);
COORD dwpos;
dwpos.X=x;
dwpos.Y=y;
SetConsoleCursorPosition(hcon,dwpos);
}
int n,m,A[4][4],x=5,y=8;

int main(){
system("color F0");
for(int i=0; i<=3; i++){
for(int j=0; j<=3; j++){
gotoxy(x,y);
cin>>A[i][j];
x+=5;
}
y+=2;
x=5;
}
system("color F0");
cout<<"HOLA!!!";
return 0;
}

No hay comentarios:

Publicar un comentario