answersLogoWhite

0

AllQ&AStudy Guides
Best answer

<?php

for($i=1; $i<=1000; $i++)

{

$num=$i;

$sum=0;

while($num>=1)

{

$rem=$num%10;

$qub=$rem*$rem*$rem;

$sum=$sum+$qub;

$num=$num/10;

}

if($sum==$i)

{

echo("<br>$sum");

}

}

?>

visit: http://tutorial.planetetutors.com

This answer is:
Related answers

<?php

for($i=1; $i<=1000; $i++)

{

$num=$i;

$sum=0;

while($num>=1)

{

$rem=$num%10;

$qub=$rem*$rem*$rem;

$sum=$sum+$qub;

$num=$num/10;

}

if($sum==$i)

{

echo("<br>$sum");

}

}

?>

visit: http://tutorial.planetetutors.com

View page

It depends on your file system. Some filesystems are CASE sensitive but typically JPG and jpg are the same thing.

View page

* matches anything. *.jpg would mean any file with a .jpg extension. 1*.jpg would mean any file where the name begins with 1 and ends with a .jpg ? matches any single character. ?.jpg would match a.jpg, 1.jpg, or F.jpg but not a1.jpg. Several ? wildcards can be used so that ??.jpg would match any jpg file with a two letter name.

View page

A good program to convert jpg to pdf would be the JPG to PDF Converter. You can download it off of www.go2pdf.com/jpg-to-pdf.html, by clicking on the link.

View page

ktl to jpg

View page
Featured study guide

Moby Dick

13 cards

Why do people hunt whales

What is a loose fish

What is the lookout position on the masthead of a ship that offers protection from inclement weather

Whose whaleboat was separated from the other whaleboats during the storm

➡️
See all cards
1.0
1 Review
More study guides
5.0
1 Review

No Reviews
Search results