A multiplication table that I wrote using PERL programming language the code is very short and easy to understand. I am using XAMPP in this sample program.
Program Listing
#!D:\xampp\perl\bin
use strict;
print "\n\n\n";
print "\t\t\tMULTIPLICATION TABLE ";
print "\n\n";
for$-(1..12){
printf'%5d',$_*$-for 1..12;
print$/
}
print "\n\n";
print "\t\t\tEnd of Program";
print "\n\n";
Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My mobile number here in the Philippines is 09173084360.
Sample Program Output
#!D:\xampp\perl\bin
use strict;
print "\n\n\n";
print "\t\t\tMULTIPLICATION TABLE ";
print "\n\n";
for$-(1..12){
printf'%5d',$_*$-for 1..12;
print$/
}
print "\n\n";
print "\t\t\tEnd of Program";
print "\n\n";
No comments:
Post a Comment