SlideShare une entreprise Scribd logo
1  sur  2
__________________________________________________________
__________________________________________________________
program Vectores;
uses crt;
var
v:array[1..11]of integer;
j,i:integer;
begin
textbackground(5);
textcolor(2);
clrscr;
writeln('Este programa permite almacenar 10 numeros y multiplicarlos por
5.');
writeln('____________________________________________________
_________');
writeln('| | | | | | | | | | |');
writeln('____________________________________________________
_________');
textcolor(yellow);
j:=-2;
for i:=1 to 10 do
begin
j:=j+6;
gotoxy(j,3);
read(v[i]);
end;
textcolor(7);
gotoxy(1,8);
writeln('____________________________________________________
_________');
gotoxy(1,9);
writeln('| | | | | | | | | | |');
gotoxy(1,10);
writeln('____________________________________________________
_________');
textcolor(yellow);
j:=-2;
for i:=1 to 10 do
begin
j:=j+6;
gotoxy(j,9);
write(v[i]*5);
end;
readkey;
end.
__________________________________________________________
__________________________________________________________

Contenu connexe

Plus de UNISANGIL - Chiquinquirá (12)

Sistemas de numeración (conversiones)
Sistemas de numeración (conversiones)Sistemas de numeración (conversiones)
Sistemas de numeración (conversiones)
 
Conversiones
ConversionesConversiones
Conversiones
 
DATOS PERSONALES
DATOS PERSONALESDATOS PERSONALES
DATOS PERSONALES
 
Program menu if
Program menu ifProgram menu if
Program menu if
 
ARCHIVOS
ARCHIVOSARCHIVOS
ARCHIVOS
 
LISTADO CÓDIGOS (LAZARUS).
LISTADO CÓDIGOS (LAZARUS).LISTADO CÓDIGOS (LAZARUS).
LISTADO CÓDIGOS (LAZARUS).
 
PILAS
PILASPILAS
PILAS
 
GRAFOS
GRAFOSGRAFOS
GRAFOS
 
LISTAS
LISTASLISTAS
LISTAS
 
COLAS
COLASCOLAS
COLAS
 
ARCHIVOS Y REGISTROS
ARCHIVOS Y REGISTROSARCHIVOS Y REGISTROS
ARCHIVOS Y REGISTROS
 
ARBOLES BINARIOS
ARBOLES BINARIOSARBOLES BINARIOS
ARBOLES BINARIOS
 

VECTORES

  • 1. __________________________________________________________ __________________________________________________________ program Vectores; uses crt; var v:array[1..11]of integer; j,i:integer; begin textbackground(5); textcolor(2); clrscr; writeln('Este programa permite almacenar 10 numeros y multiplicarlos por 5.'); writeln('____________________________________________________ _________'); writeln('| | | | | | | | | | |'); writeln('____________________________________________________ _________'); textcolor(yellow); j:=-2; for i:=1 to 10 do begin j:=j+6; gotoxy(j,3); read(v[i]); end; textcolor(7); gotoxy(1,8); writeln('____________________________________________________ _________'); gotoxy(1,9);
  • 2. writeln('| | | | | | | | | | |'); gotoxy(1,10); writeln('____________________________________________________ _________'); textcolor(yellow); j:=-2; for i:=1 to 10 do begin j:=j+6; gotoxy(j,9); write(v[i]*5); end; readkey; end. __________________________________________________________ __________________________________________________________