Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $cantidadPedida = 3;
- $factorCantidadPedida = 10;
- // 30
- $factorUnidadLeida = 5;
- $cantidadLeida = 4;
- $resultadoFactorLeido = $factorUnidadLeida * $cantidadLeida;
- // 10
- // $resultadoFactorLeido es multiplo o divisor de $factorCantidadPedida?
- if($resultadoFactorLeido % $factorCantidadPedida == 0){
- echo 'Es divisible';
- }else{
- echo 'No es divisible';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement