programming-examples/perl/Datatype/Get the remainder.pl
2019-11-15 12:59:38 +01:00

5 lines
121 B
Perl

#!/usr/bin/perl -w
print "15 divided by 6 is exactly ", 15 / 6, "\n";
print "That's a remainder of ", 15 % 6, "\n";