fork download
  1. echo "enter the first num:"
  2. read n1
  3. echo "enter the second num:"
  4. read n2
  5. sum=`echo $n1 +$n2 |bc`
  6. echo "sum="$sum
Success #stdin #stdout 0.01s 5324KB
stdin
1
2
stdout
enter the first num:
enter the second num:
sum=3