fork download
  1. #!/usr/bin/perl6
  2. print("The Perl6 Subtract/Divide Program.\n");
  3. my $a = 100;
  4. my $b = 50;
  5. my $c = ($a - $b);
  6. print("A "~$a~" B "~$b~" C "~$c~"\n");
  7. my $d = 2500;
  8. my $e = 50;
  9. my $f = ($d / $e);
  10. print("D "~$d~" E "~$e~" F "~$f~"\n");
Success #stdin #stdout 0.27s 83152KB
stdin
1
2
10
42
11
stdout
The Perl6 Subtract/Divide Program.
A 100 B 50 C 50
D 2500 E 50 F 50