PageRenderTime 36ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/demos/Operators/MulDiv.php

http://orionphp.googlecode.com/
PHP | 16 lines | 13 code | 3 blank | 0 comment | 0 complexity | 0d59743081fa1778858b5ab1a428b6e4 MD5 | raw file
Possible License(s): MIT
  1. print('Start...');
  2. sleep(1);
  3. $d = 20;
  4. $c = $d * 5;
  5. print('$c = '.$d.' * 5 = '.$c);
  6. sleep(1);
  7. $x = $d;
  8. $d = $c / $d;
  9. print( '$d = '.$c.' / '.$x.' = '.$d );
  10. sleep(1);
  11. $x = $d;
  12. $d = $c / ($d * 40);
  13. print( '$d = '.$c.' / ('.$x.' * 40) = '.$d );