programming-examples/perl/SystemFunction/Using exp function.pl
2019-11-15 12:59:38 +01:00

9 lines
194 B
Perl

print "Welcome to the Exponentiator!\n";
print "Enter a number: ";
while ($s = <>) {
print "\n";
print " $s";
print "e = " . exp($s) . "\n";
print "Enter a number: ";
}