echo $変数名
とします. $ はシェル変数の
値を取り出す, シェルのメタキャラクタです.
e023199@cc1> ./a.out Input the lengths of sides.>>2 4 5 The area is 3.799671. e023199@cc1> echo $status 0 e023199@cc1> ./a.out Input the lengths of sides.>>2 3 8 2.000000, 3.000000 and 8.000000 do not make a triangle. e023199@cc1> echo $status 1