Arithmetic/Integer: Difference between revisions

Content added Content deleted
m (→‎{{header|AWK}}: Make the comments like the other examples.)
m (→‎{{header|UNIX Shell}}: Turn on the color with 'lang bash', not 'lang sh'. A shell with version 5.2.14 must be pdksh.)
Line 1,631: Line 1,631:
{{works with|Bourne Shell}}
{{works with|Bourne Shell}}
{{works with|Almquist SHell}}
{{works with|Almquist SHell}}
<lang sh>#!/bin/sh
<lang bash>#!/bin/sh
read a; read b;
read a; read b;
echo "a+b = " `expr $a + $b`
echo "a+b = " `expr $a + $b`
Line 1,644: Line 1,644:


{{works with|Bourne Again SHell|3.2}}
{{works with|Bourne Again SHell|3.2}}
{{works with|Korn SHell|5.2.14}}
{{works with|pdksh|5.2.14}}
{{works with|Z SHell}}
{{works with|Z SHell}}
<lang bash>#!/bin/sh
<lang bash>#!/bin/sh