The World of Numbers

Sort by

recency

|

192 Discussions

|

  • + 0 comments

    read X read Y echo [X - Y] echo [X / Y]

  • + 0 comments

    read X read Y

    echo X + ((Y)) echo X * ((Y))

  • + 0 comments

    read -p 5 X read -p 2 Y

    sum=((X-Y)) product=((X/Y))

    echo "difference" echo "quotient"

  • + 0 comments

    read x read y echo ((x-y)) echo ((x/y))

  • + 0 comments
    #!/bin/bash
    
    read X
    read Y
    
    echo "$(($X + $Y))"
    echo "$(($X - $Y))"
    echo "$(($X * $Y))"
    echo "$(($X / $Y))"