A simple program that I wrote in Perl CGI to display the odd and even numbers on the web browser.
Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
Sample Program Output
Program Listing
#!"C:\xampp\perl\bin\perl.exe"
print "Content-type:text/html\n\n";
print "ODD AND EVEN Numbers";
print "<br><br>";
for (my $i=0; $i <= 10; $i++) {
if ($i % 2 == 0) {
print "$i is an EVEN Number";
print "<br />";
}
else {
print "$i is an ODD Number";
print "<br />";
}
}