-
Lenguaje
Python
-
Descripción
Pide un número muestra si es entero o decimal.
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
import os, math
un_numero = float (input ('Ingresa el valor de un numero: '))
if un_numero==math.floor(un_numero):
print ('Es entero')
else:
print ('Es decimal')
print ()
os.system ('pause')
un_numero = float (input ('Ingresa el valor de un numero: '))
if un_numero==math.floor(un_numero):
print ('Es entero')
else:
print ('Es decimal')
print ()
os.system ('pause')