Backup proyecto Joyfe - Borland

This commit is contained in:
2025-06-16 22:54:10 +02:00
commit d61829a1a7
130 changed files with 11881 additions and 0 deletions

27
CPP/EJEMPLO4.CPP Normal file
View File

@ -0,0 +1,27 @@
// ejemplo4
#include<stdio.h>
#include<conio.h>
int tabla[10][10],num,x,y,sw=1;
void main(){
clrscr();
for (y=0,num=1;y<10;y++){
if (sw==1)
for (x=0;x<10;x++,num++){
tabla[y][x]=num;
printf ("\nValor de la posici<63>n [%d][%d] es: %d",y,x,tabla[y][x]);
sw=0;
}
else
for (x=9;x>=0;x--,num++){
tabla[y][x]=num;
printf ("\nValor de la posici<63>n [%d][%d] es: %d",y,x,tabla[y][x]);
sw=1;
}
fflush(stdin);
getch();
}
fflush(stdin);
getch();
}