Created
November 29, 2015 12:35
-
-
Save tomcha/1b3a086811fa55f15e6f to your computer and use it in GitHub Desktop.
17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $apple; | |
my $banana; | |
my $peach; | |
$apple = 250; | |
$banana = 150; | |
$peach = 120; | |
my $total = $apple * 10 + $banana * 8 + $peach * 5; | |
my $addtax = $total * 1.08; | |
print "消費税込みの合計金額は$addtaxです。\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment