Skip to content

Instantly share code, notes, and snippets.

@tomcha
Created November 29, 2015 12:41
Show Gist options
  • Save tomcha/8c10dd76903de0be946d to your computer and use it in GitHub Desktop.
Save tomcha/8c10dd76903de0be946d to your computer and use it in GitHub Desktop.
19
#!/usr/bin/env perl
use strict;
use warnings;
my $mod3 = 100 % 3;
my $mod7 = 100 % 7;
my $mod11 = 100 % 11;
print "100を3で割った時の余りは$mod3です。\n";
print "100を7で割った時の余りは$mod7です。\n";
print "100を11で割った時の余りは$mod11です。\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment