Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $divisible=false;
- $numero=24;
- $divisor=1;
- do{
- if ($numero % $divisor == 0){
- $divisible=true;
- echo "El numero $numero es divisible por $divisor<br>";
- $divisor++;
- }
- }
- while ($numero==$divisor);
- echo "Fin";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement