SlideShare una empresa de Scribd logo
1 de 1
open System
open System.Reflection
open Microsoft.FSharp.Reflection
let rec Datos ing =
printfn "Ingrese dato"
let tipo = Console.ReadLine()
let tipobool = true
let tipoInt = 0
let tipoDou = 0.0
if (System.Int32.TryParse(tipo, ref tipoInt)) then
printfn "El dato es tipo Entero"
else if (System.Double.TryParse(tipo, ref tipoDou)) then
printfn "El tipo de dato es Float"
else if (System.Boolean.TryParse(tipo, ref tipobool)) then
printfn "El tipo de dato es Booleano"
else
printfn "El tipo de dato es STRING"
Console.WriteLine("nDesea convertir otor dato S/N")
let op = Console.ReadLine()
if op = "s" then
Datos 1
Datos 0
Console.ReadKey()

Más contenido relacionado

Destacado

Libro electronico tic
Libro electronico ticLibro electronico tic
Libro electronico ticframujimon99
 
Recommendation VIVACOM
Recommendation VIVACOMRecommendation VIVACOM
Recommendation VIVACOMRuslan Tsankov
 
Terreno en doctor gonzalez.
Terreno en doctor gonzalez.Terreno en doctor gonzalez.
Terreno en doctor gonzalez.portafoliolegal
 
MS Degree Certificate
MS Degree CertificateMS Degree Certificate
MS Degree CertificateGanesh Kamath
 
Внутрішня та зовнішня комунікація, як інструменти позиціонування бренду (Наді...
Внутрішня та зовнішня комунікація, як інструменти позиціонування бренду (Наді...Внутрішня та зовнішня комунікація, як інструменти позиціонування бренду (Наді...
Внутрішня та зовнішня комунікація, як інструменти позиціонування бренду (Наді...TeamCareerForum
 
Tipos de aprendizaje
Tipos de aprendizajeTipos de aprendizaje
Tipos de aprendizajePanteritas
 

Destacado (13)

Libro electronico tic
Libro electronico ticLibro electronico tic
Libro electronico tic
 
Test
TestTest
Test
 
Mi Quibdó
Mi QuibdóMi Quibdó
Mi Quibdó
 
Recommendation VIVACOM
Recommendation VIVACOMRecommendation VIVACOM
Recommendation VIVACOM
 
Rodrigo PINTO MSc PMP, fr
Rodrigo PINTO MSc PMP, frRodrigo PINTO MSc PMP, fr
Rodrigo PINTO MSc PMP, fr
 
Terreno en doctor gonzalez.
Terreno en doctor gonzalez.Terreno en doctor gonzalez.
Terreno en doctor gonzalez.
 
MS Degree Certificate
MS Degree CertificateMS Degree Certificate
MS Degree Certificate
 
jw.bmp
jw.bmpjw.bmp
jw.bmp
 
GeorgiaTech-Cert
GeorgiaTech-CertGeorgiaTech-Cert
GeorgiaTech-Cert
 
certifikat_UML
certifikat_UMLcertifikat_UML
certifikat_UML
 
Внутрішня та зовнішня комунікація, як інструменти позиціонування бренду (Наді...
Внутрішня та зовнішня комунікація, як інструменти позиціонування бренду (Наді...Внутрішня та зовнішня комунікація, як інструменти позиціонування бренду (Наді...
Внутрішня та зовнішня комунікація, як інструменти позиціонування бренду (Наді...
 
1
11
1
 
Tipos de aprendizaje
Tipos de aprendizajeTipos de aprendizaje
Tipos de aprendizaje
 

Define el tipo de dato en f #

  • 1. open System open System.Reflection open Microsoft.FSharp.Reflection let rec Datos ing = printfn "Ingrese dato" let tipo = Console.ReadLine() let tipobool = true let tipoInt = 0 let tipoDou = 0.0 if (System.Int32.TryParse(tipo, ref tipoInt)) then printfn "El dato es tipo Entero" else if (System.Double.TryParse(tipo, ref tipoDou)) then printfn "El tipo de dato es Float" else if (System.Boolean.TryParse(tipo, ref tipobool)) then printfn "El tipo de dato es Booleano" else printfn "El tipo de dato es STRING" Console.WriteLine("nDesea convertir otor dato S/N") let op = Console.ReadLine() if op = "s" then Datos 1 Datos 0 Console.ReadKey()