要求:提示用户输入两个数,结果返回两个数的乘积。
程序:
#! /usr/bin/perl
print "please input 2 numbers:\n";
$a=;
$b=;
print "the sum of the numbers is:", $a*$b, "\n";
程序:
#! /usr/bin/perl
print "please input 2 numbers:\n";
$a=;
$b=;
print "the sum of the numbers is:", $a*$b, "\n";
编辑回复