Pi display problem
大帅
大帅 2019-02-18 21:47:17
0
1
1069

Could you please tell me where is the error in the code? dw keeps showing the second and third errors.

<?php

echo' 3 ways to write pi: <p>';

echo'The first way: pi()='.pi ().'<p>';

echo'The second type: 3.14159265359='.3.14159265359.'';

echo'The third type: 314159265359E-11='.314159265359E -11.'<p>';

?>


大帅
大帅

reply all(1)
云媒

Three ways to write pi: 3.14159265359E-11 =3.14159265359
π = 3.14159265359
pi() = 3.14159265359


<?php
$No = "3.14159265359";
echo 'Three ways to write pi:';
echo "3.14159265359E-11 =".$No."<br>";
echo " π = ".$No."<br>";
echo "pi() = ".$No."<br>";
?>



Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!