Comments (2)

  1. I just want to share that this only works if you use echo with Double quotes.
    echo "$a + $b is equal to $c";
    Output: 7 + 19 is equal to 26

    //Using single quotes wont work and will only output a string without doing the arithmetic
    echo '$a + $b is equal to $c';
    Output: $a + $b is equal to $c.

  2. Brad, Great tutorial, still the Modulus is confusing… 19 divided by 7 is 2 rem 5 as 19 =2*7 + 5… Why does it state that 7 Mod 19 is 7 …

Comments are closed.