Arithmetic/Integer: Difference between revisions

F#
(F#)
Line 309:
PRINT *, ' A ** B = ', (A ** B)
END
 
=={{header|F_Sharp|F#}==
#light
[<EntryPoint>]
let main args =
if Array.length args <> 2 then
eprintfn "usage: basic_arithmethic numA numB"
exit 0
let (j, a) = System.Int32.TryParse(args.[0])
let (k, b) = System.Int32.TryParse(args.[1])
printfn "a add b = %d" (a + b)
printfn "a subtract b = %d" (a - b)
printfn "a multiplied by b = %d" (a * b)
printfn "a divided by b = %d" (a / b)
printfn "a mod b = %d" (a % b)
0
 
=={{header|Groovy}}==
Anonymous user