现在的位置: 首页 > 综合 > 正文

第一个perl程序

2013年10月08日 ⁄ 综合 ⁄ 共 244字 ⁄ 字号 评论关闭

使用Active PerL

#1st.pl

#perl是一门强大的解释性语言

#first perl code

print "=====================";
print "/nbe brave!";
print "/ninput 1st number:/n";
chomp($abc=<STDIN>);
print "input 2nd number:/n";
chomp($otherabc=<STDIN>);
print "$abc*$otherabc = ",$abc*$otherabc,"/n";

 

输出结果:

 

 

抱歉!评论已关闭.