Backup proyecto Joyfe - Borland
This commit is contained in:
32
CPP/EJEMPLO2.CPP
Normal file
32
CPP/EJEMPLO2.CPP
Normal file
@ -0,0 +1,32 @@
|
||||
// Programa ejemplo 2
|
||||
//
|
||||
// Programadores:
|
||||
//
|
||||
// Juan L<>pez Fern<72>ndez
|
||||
// Mois<69>s Virumbrales Cuenca
|
||||
// DAI 1<>A
|
||||
//
|
||||
// Program ejemplo de tablas.
|
||||
|
||||
|
||||
#include<stdio.h>
|
||||
#include<conio.h>
|
||||
|
||||
int tabla[100];
|
||||
int con,num,conaux;
|
||||
|
||||
void main() {
|
||||
for (con=0,num=10;con<100;con++,num=num+2)
|
||||
tabla[con]=num;
|
||||
clrscr();
|
||||
for (con=99;con>=0;con--,conaux++) {
|
||||
printf ("\nEl valor introducido en la posici<63>n %d es: %d",con+1,tabla[con]);
|
||||
if (conaux==24) {
|
||||
fflush (stdin);
|
||||
getch();
|
||||
conaux=0;
|
||||
}
|
||||
}
|
||||
fflush (stdin);
|
||||
getch();
|
||||
}
|
||||
Reference in New Issue
Block a user