Help for this page

Select Code to Download


  1. or download this
    chomp($ask);         # chomp() here rather than chop()
    if ($ask eq $add) {
    $z = $x + $y;
    print "$x + $y = $z";}
    
  2. or download this
    chomp($ask);    
    if ($ask eq $add || $ask == 1) {
    $z = $x + $y;
    print "$x + $y = $z";}