Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
$n=99;
$n=$temp;
$sum=0;
do
{
$r=$n/10;
$sum=$sum+$r;
$n=$n/10;
}
while (n!=0)
{
echo "$sum"
}
do
{
$sum=$rev;
$r=$rev/10;
echo "$r";
$n=$n/10;
}
while ($n!=0)
echo "the sum of $temp is $sum and the reverse of $sum is $r";
?>
</body>
</html>
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more