'zaliczenie'
This commit is contained in:
parent
54036290ac
commit
b106597e32
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env runhaskell
|
||||
|
||||
main = do
|
||||
print [1..10]
|
||||
-- main = do
|
||||
-- print [1..10]
|
||||
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ main = do
|
||||
|
||||
-- fact :: Integer -> Integer
|
||||
-- fact n | n == 0 = 1
|
||||
-- | n /= 0 = n * fact (n-1)
|
||||
-- | n /= 0 = n * fact (n-1)
|
||||
-- main = do
|
||||
-- putStrLn "The factorial of 5 is:"
|
||||
-- print (fact 5)
|
||||
@ -104,19 +104,19 @@ main = do
|
||||
|
||||
|
||||
|
||||
-- eveno :: Int -> Bool
|
||||
-- noto :: Bool -> String
|
||||
eveno :: Int -> Bool
|
||||
noto :: Bool -> String
|
||||
|
||||
-- eveno x = if x `rem` 2 == 0
|
||||
-- then True
|
||||
-- else False
|
||||
-- noto x = if x == True
|
||||
-- then "This is an even Number"
|
||||
-- else "This is an ODD number"
|
||||
eveno x = if x `rem` 2 == 0
|
||||
then True
|
||||
else False
|
||||
noto x = if x == True
|
||||
then "This is an even Number"
|
||||
else "This is an ODD number"
|
||||
|
||||
-- main = do
|
||||
-- putStrLn "Example of Haskell Function composition"
|
||||
-- print ((noto.eveno)(16))
|
||||
main = do
|
||||
putStrLn "Example of Haskell Function composition"
|
||||
print ((noto.eveno)(16))
|
||||
|
||||
|
||||
|
||||
|
@ -7,3 +7,4 @@ Na zaliczenia wybierzemy termin naszych ostatnich zajęć.
|
||||
Więcej info o warunkach zaliczenia:
|
||||
* przynajmniej 4 paradygmaty na ocenę 4.0
|
||||
* na lepszą ocenę muszą być jakieś ciekawe bajery
|
||||
* w ramach wyjątku może to być inna aplikacja niż todo, ale musi ona implementować również różne paradygmaty programowania
|
Loading…
Reference in New Issue
Block a user