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