Bash ~ Perl ~ Python ~ Batch ~ Ruby
Sunday, 14 April 2013
single if statement
print "Enter the password";
chomp ($s=<STDIN>);
$s eq "y" ? print "hi" : print "Bye" ;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment