Advertisement
bulfaitelo

trabalhando com for

Nov 19th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * @author BULFAITELO
  5.  * @copyright 2012
  6.  */
  7.  
  8. print "<strong>Primeiro exempo:</strong><br />";
  9.  
  10. for($contador=0;$contador<10; $contador++)
  11. {
  12.     print $contador . " Contador<br />";
  13. }
  14.  
  15. print"<strong><br />Segundo exmplo:<br /></strong>";
  16.  
  17. for($cont=10;$cont<=20;$cont++)
  18. {
  19.     print "o valor de cont e : $cont<br />";
  20. }
  21.  
  22. print "<a href='http://arquivos.bulfaitelo.net'><input type='button' value='Voltar'/></a>";  
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement