Guest User

Untitled

a guest
May 20th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. void main()
  2. {
  3. int anzahlKoerner = 1000;
  4. int abzulegendeKörner = 1;
  5. int körnerCounter = 1;
  6.  
  7. while(vornFrei())
  8. {
  9. if(anzahlKoerner >= körnerCounter)
  10. {
  11. while(abzulegendeKörner>0)
  12. {
  13. gib();
  14. abzulegendeKörner = abzulegendeKörner-1;
  15. anzahlKoerner --;
  16. }
  17. }
  18. vor();
  19. abzulegendeKörner = körnerCounter*2;
  20. körnerCounter = körnerCounter*2;
  21.  
  22. }
  23. }
Add Comment
Please, Sign In to add comment