Jump to content

A+B: Difference between revisions

146 bytes added ,  14 years ago
Added Unix Shell solution, using bash
m (→‎File: reuse stand in & stand out.)
(Added Unix Shell solution, using bash)
Line 425:
:Disp A+B</lang>
 
=={{header|Unix Shell}}==
Script "a+b.sh":
<lang bash>#!/bin/sh
read a b
echo $(( a + b ))</lang>
Output:
<lang bash>echo 2 3 | ./a+b.sh
5</lang>
=={{header|Ursala}}==
Using standard input and output streams:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.