The World of Numbers

Sort by

recency

|

207 Discussions

|

  • + 0 comments

    The Linux shell is such a powerful tool — once you get comfortable with the command line, it opens up a whole new level of control and efficiency. 11x play

  • + 0 comments

    read X read Y mo() { echo 1 Y )) }

    mo + mo - mo '*' mo /

  • + 0 comments

    !/bin/bash read x read y echo ((x-y)) echo ((x/y))

  • + 0 comments

    !/bin/bash

    calc_numbers () { read x read y

    echo $((x + y))
    echo $((x - y))
    echo $((x * y))
    echo $((x / y)) 
    

    }

    calc_numbers

  • + 0 comments
    read X
    read Y
    
    echo "$(($X+$Y))"
    echo "$(($X-$Y))"
    echo "$(($X*$Y))"
    echo "$(($X/$Y))"