变量

2016-10-11 19:54:35来源:CSDN作者:g13731463274人点击

[root@mysql1 perl]# ./9.pl 
the circumference of a circle of radius 12.5 is 78.53981635.
[root@mysql1 perl]# cat 9.pl 
#!/usr/bin/perl -w


$pi=3.141592654;
$circ=2 * $pi * 12.5;
print "the circumference of a circle of radius 12.5 is $circ./n";


[root@mysql1 perl]# ./9.pl   
the circumference of a circle of radius 12.5 is 78.53981635.

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台