Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. var esponente=3;
  2.  
  3. var numero=2;
  4.  
  5. var risultato=2;
  6.  
  7. var contatore=0;
  8.  
  9.  
  10. while(contatore<esponente)
  11. {
  12. risultato*=numero;
  13. contatore=contatore+1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement