Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tomcha
Created December 1, 2015 09:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomcha/c43d21b1fb3bd4bdda5a to your computer and use it in GitHub Desktop.
Save tomcha/c43d21b1fb3bd4bdda5a to your computer and use it in GitHub Desktop.
30
#!/usr/bin/env perl
use strict;
use warnings;
my $i = 0;
print "1から10までの数字を入力して下さい。>>>";
$i = <STDIN>;
chomp $i;
if ($i == 5){
print "5\n";
}else{
print "5以外\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment