her.esy.fun/src/posts/0010-Haskell-Now/basic.hs

5 lines
63 B
Haskell
Raw Normal View History

2019-12-23 09:56:47 +00:00
f :: Int -> Int -> Int
f x y = x*x + y*y
main = print (f 2 3)