Exercise 5.3D

From Earlham CS Department
Revision as of 12:35, 18 December 2009 by Damian (talk | contribs) (New page: Return to Week 2 <br> Exercise 5.3 in <i>Beginning Perl for Bioinformatics</i></b> <pre> #!/usr/bin/perl -w use strict; #Damian Almiron #Ex5-3 #Pseudocode: # write a program...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return to Week 2
Exercise 5.3 in Beginning Perl for Bioinformatics

#!/usr/bin/perl -w

use strict; 
 

#Damian Almiron

#Ex5-3 

#Pseudocode: 

# write a program that prints all the numbers from 1 to 100.  

#my variables 

my $count = 0; 

#Initialize the loop 

until ($count = 100) { 

    $count++; 

    print "$count\n";

} 

exit;