Help for this page

Select Code to Download


  1. or download this
    if ($x == "0"){ $num_c = $num_a + $num_b }
    if ($x == "1"){ $num_c = $num_a - $num_b }
    if ($x == "2"){ $num_c = $num_a * $num_b }
    
  2. or download this
    # ...
    my $equat = "$num_a $symbols[$x] $num_b";
    ...
    # ...
    $num_c = eval $equat;
    # ...