Difference between revisions of "Exercise 5.3"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
Return to [[Week 2]] | Return to [[Week 2]] | ||
+ | <br> | ||
Exercise 5.3 in <i>Beginning Perl for Bioinformatics</i></b> | Exercise 5.3 in <i>Beginning Perl for Bioinformatics</i></b> | ||
Latest revision as of 16:23, 27 September 2009
Return to Week 2
Exercise 5.3 in Beginning Perl for Bioinformatics
#!/usr/bin/perl use strict; use warnings; #Erika Phelps #Sept 27, 2009 #Exercise 5.3 #Pseudocode: #Initialize a count. #For count < 101, add one to the count and print this value. #Exit program when the first 100 numbers have been printed. #Define variables my $count = 0; #Initialize the loop while ($count < 101) { $count++; print "$count\n"; } exit; #Why does it print 101?