A+B: Difference between revisions
Content deleted Content added
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:
|