Post Reply 
What Was Your First Programming Language?
07-09-2015, 01:55 AM
Post: #88
RE: What Was Your First Programming Language?
Very nice!

An alternative version of the following lines

Code:
if ($guess > $number) {print "Too high!";}
if ($guess < $number) {print "Too low!";}

Code:
print "Too high!" if ($guess > $number);
print "Too low!" if ($guess < $number);

Sylvain
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: What Was Your First Programming Language? - Sylvain Cote - 07-09-2015 01:55 AM



User(s) browsing this thread: 1 Guest(s)