Find the difference between the sum of the squares of the first “N” numbers and the square of the sum.
perhaps you wanted to say:
Find the difference between the square of the sum of the first "N" numbers and the sum of the square.
Find the difference between the sum of the squares of the first “N” numbers and the square of the sum.
perhaps you wanted to say:
Find the difference between the square of the sum of the first "N" numbers and the sum of the square.
(processedString ++ [toUpper (head remainingString)]
there is no closing parenthesis in the first argument of the toUppercase function:
haskell
toUppercase :: String -> String -> String
toUppercase processedString remainingString =
if (remainingString == [])
then processedString
else toUppercase (processedString ++ [toUpper (head remainingString)]*)* (tail remainingString)
addInts x y = x + y
it helped me a lot thinking about this function as just as a prefix notation of the same thing at the right of the = sign