Perl Program to print multiplication table Program: print "Enter the number:"; $n = <STDIN> ; print"\nMultiplication Table Of $n>>"; for($i=1;$i<=10;$i=$i+1){ $m=$n*$i; print"\n$m"; } print"\n"; Expected O/P: Enter the number:12 Multiplication Table Of 12 >> 12 24 36 48 60 72 84 96 108 120 Previous Post Next Post
0 Comments
Post a Comment