A+B: Difference between revisions
Content added Content deleted
m (→File: reuse stand in & stand out.) |
(Added Unix Shell solution, using bash) |
||
Line 425: | Line 425: | ||
:Disp A+B</lang> |
: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}}== |
=={{header|Ursala}}== |
||
Using standard input and output streams: |
Using standard input and output streams: |