Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Learn more about F# at http://fsharp.org
- // See the 'F# Tutorial' project for more help.
- // Indented code available at
- open System
- [<EntryPoint>]
- let main argv =
- let cylinder r h = Math.PI * r * h
- printfn "Enter radius"
- let value = Console.ReadLine()
- let radius = float value
- printfn "Enter height"
- value = Console.ReadLine()
- let height = float value
- let calc = cylinder radius height
- printfn "%f" calc
- // Wait for user input
- Console.ReadKey()
- 0 // return an integer exit code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement