Написал isCongruent

This commit is contained in:
2024-11-29 19:24:05 +03:00
parent 69e7f5537a
commit 1aa359b5c1
2 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
module Lib
( someFunc
( isCongruent
) where
someFunc :: IO ()
someFunc = putStrLn "someFunc"
isCongruent :: Int -> Int -> Int -> Bool
isCongruent a b d = a `mod` d == b `mod` d