-
Lenguaje
Pascal
-
Descripción
Pide que se ingresen dos números y muestra si son iguales o no.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
program IgualdadDeDosNumeros;
uses crt;
var a, b : real;
begin
write ('Ingresa el valor de a: ');
readln (a);
write ('Ingresa el valor de b: ');
readln (b);
if a=b then
begin
writeln ('Los n'#163'meros ingresados son iguales.');
end
else
begin
writeln ('Los n'#163'meros ingresados son diferentes.');
end;
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.
uses crt;
var a, b : real;
begin
write ('Ingresa el valor de a: ');
readln (a);
write ('Ingresa el valor de b: ');
readln (b);
if a=b then
begin
writeln ('Los n'#163'meros ingresados son iguales.');
end
else
begin
writeln ('Los n'#163'meros ingresados son diferentes.');
end;
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.