Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php
  2. $divisible=false;
  3. $numero=24;
  4. $divisor=1;
  5.  
  6. do{
  7. if ($numero % $divisor == 0){
  8. $divisible=true;
  9. echo "El numero $numero es divisible por $divisor<br>";
  10. $divisor++;
  11. }
  12. }
  13. while ($numero==$divisor);
  14. echo "Fin";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement