Open evantianx opened 5 years ago
Given an integral number, determine if it's a square number
isSquare :: Integral n => n -> Bool isSquare n = let sr = round $ sqrt $ fromIntegral n in sr * sr == n
Task
Given an integral number, determine if it's a square number
Solutions