Advertisement
Juke2706

Skill up

Nov 6th, 2014
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //Ti-Basic
  2.  
  3. Input "SKILL UP=",K //Number of skill up you want
  4. Input "*2? (YES=1, NO=0)",I //Asking for the skill boost
  5. 1->N
  6. 0->G
  7.  
  8. If I=1 //Testing if there is the skill boost
  9. Then
  10. 0.2->P
  11. Else
  12. 0.1->P
  13. End
  14.  
  15. While G<1
  16. 1-binomcdf(N,P,K-1)->G // binomFrép in french
  17. N+1->N
  18. End
  19.  
  20. Disp N //Number of monsters you have to feed to obtain K skill up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement