Exercise 4.2 D

From Earlham CS Department
Revision as of 11:19, 18 December 2009 by Damian (talk | contribs) (New page: Return to Aug 30-Sept 5 <pre> #!/usr/bin/perl -w use strict; #Damian Almiron #Ex 4-2 #Pseudocode: #Write a program that stores an integer in a variable and prints it out. ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return to Aug 30-Sept 5


#!/usr/bin/perl -w

use strict; 

#Damian Almiron

#Ex 4-2 

#Pseudocode:

#Write a program that stores an integer in a variable and prints it out. 
 

#Store integer

my $number= '4'; 

print "The variable is $number.\n"; 

exit;