Documentos de Académico
Documentos de Profesional
Documentos de Cultura
PREENTREGA
PREENTREGA
uses crt;
type matriz= array[1..5,1..5] of longint;
end;
end;
procedure grado1
begin
op:= -1;
n:=5;
while op <> 0 do begin
clrscr; { limpia pantalla: clear screen }
writeln;
writeln;
writeln(' MENU PRINCIPAL');
writeln;
writeln(' 1. Llenar matriz costo manual');
writeln(' 2. Mostrar matriz costo');
writeln(' 3. Llenar matriz dolor Manual');
writeln(' 4. Mostrar matriz dolor');
writeln(' 5. hacer simulacion grado 1');
writeln(' 6. llenar matrices costo y dolor al azar');
writeln;
writeln(' 0. Salir');
writeln;
writeln(' Indique una opcion :');
writeln; writeln;
write('Opcion = ');readln(op);
writeln; writeln;
case op of
1: llenamatriz( costo, N);
2: muestramatriz( costo, N);
3: llenamatriz( dolor, N);
4: muestramatriz( dolor, N);
5: grado1(costo, dolor);
6: llenarandom(costo,Dolor);
end;
writeln;
if op <> 0 then begin
writeln( ' Pulse una tecla para continuar ....');
readln;
end;
end;
end.