-
Lenguaje
Pascal
-
Descripción
Pide un número muestra si es entero o decimal.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
program NumeroEnteroODecimal;
uses crt, math;
var un_numero : real;
begin
write ('Ingresa el valor de un numero: ');
readln (un_numero);
if un_numero=floor(un_numero) then
begin
writeln ('Es entero');
end
else
begin
writeln ('Es decimal');
end;
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.
uses crt, math;
var un_numero : real;
begin
write ('Ingresa el valor de un numero: ');
readln (un_numero);
if un_numero=floor(un_numero) then
begin
writeln ('Es entero');
end
else
begin
writeln ('Es decimal');
end;
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.