Advertisement
roniewill

Desafio Asolucoesweb - Exercício lógica

Jul 6th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2.  
  3. $val = 3;
  4. $next = null;
  5. $result = $val * 1;
  6.  
  7. echo "Multipleque: 3 x 1 = ".$result."<br>";
  8.  
  9. for($i=0;$i<9;$i++){
  10.     $next = $result;
  11.     $result = 3 * $result;
  12.     echo "Multipleque: 3 x " . $next . " = " . $result . "<br>";
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement