Jump to content

A+B: Difference between revisions

223 bytes added ,  14 years ago
Added Oz.
(alphabetical)
(Added Oz.)
Line 193:
=={{header|OCaml}}==
<lang ocaml>Scanf.scanf "%d %d" (fun a b -> Printf.printf "%d\n" (a + b))</lang>
 
=={{header|Oz}}==
<lang oz>declare
class TextFile from Open.file Open.text end
 
StdIn = {New TextFile init(name:stdin)}
 
fun {ReadInt}
{String.toInt {StdIn getS($)}}
end
in
{Show {ReadInt}+{ReadInt}}</lang>
 
=={{header|Pascal}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.