Jump to content

A+B: Difference between revisions

70 bytes added ,  14 years ago
→‎{{header|Tcl}}: Added a one-liner; less clear IMO but still neat
(→‎Tcl: Added implementation)
(→‎{{header|Tcl}}: Added a one-liner; less clear IMO but still neat)
Line 210:
<lang tcl>scan [gets stdin] "%d %d" x y
puts [expr {$x + $y}]</lang>
Alternatively:
<lang tcl>puts [tcl::mathop::+ {*}[gets stdin]]</lang>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.