Submission #155100


Source Code Expand

main do
  num <- getLine
  putStrLn (threeOrInThree num)

threeOrInThree :: Int -> Bool 
threeOrInThree x
    | x % 3 == 0 = "YES"
    | 3 = "YES"
    | otherwise = "NO" 

Submission Info

Submission Time
Task A - 世界のFizzBuzz
User iyahoo
Language Haskell (GHC 7.4.1)
Score 0
Code Size 180 Byte
Status CE

Compile Error

Main.hs:1:6: parse error on input `do'