Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some maths #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions F4.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32526.322
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "F4", "F4\F4.fsproj", "{5525B4BC-9952-429E-97DC-3159BB3E30A5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5525B4BC-9952-429E-97DC-3159BB3E30A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5525B4BC-9952-429E-97DC-3159BB3E30A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5525B4BC-9952-429E-97DC-3159BB3E30A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5525B4BC-9952-429E-97DC-3159BB3E30A5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7BC9520B-2153-47D7-86A7-5936CEFC289A}
EndGlobalSection
EndGlobal
12 changes: 12 additions & 0 deletions F4/F4.fsproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="Program.fs" />
</ItemGroup>

</Project>
32 changes: 32 additions & 0 deletions F4/Program.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
open System

let Main_func()=

printfn "Enter Intiger number:"

let gettnum= int32(Console.ReadLine())

printfn "Enter Float number:"

let floatnum= float(Console.ReadLine())

printfn "Your number is %A" (gettnum.GetType())

printfn "Sqrt of your number is %.2f" (sqrt (float(gettnum)))

printfn "abs of your num is %i" (abs -1)

printfn "Ceil of your num is %f" (ceil floatnum)

printfn "floor of your num is %f" (floor floatnum)








Main_func()

Console.ReadKey() |> ignore