A+B: Difference between revisions

Content added Content deleted
No edit summary
(→‎Insitux: implementation)
Line 3,234: Line 3,234:
line <- getLine
line <- getLine
print $ sum $ map cast $ words line</syntaxhighlight>
print $ sum $ map cast $ words line</syntaxhighlight>

=={{header|Insitux}}==
<syntaxhighlight lang="insitux">(+ (to-num (prompt "Enter first number: "))
(to-num (prompt "Enter second number: ")))</syntaxhighlight>


=={{header|J}}==
=={{header|J}}==