Guest User

Untitled

a guest
Jan 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5. double gesammt = 20;
  6. double zahl = 1;
  7. double modulo = gesammt % 2;
  8. double counter = 1;
  9. double fak = 1;
  10.  
  11. while (modulo == 0)
  12. {
  13. counter = 0;
  14.  
  15. while (counter <= zahl)
  16. {
  17. fak = fak * counter;
  18. counter ++;
  19. }
  20.  
  21. printf ("%d\n", fak);
  22.  
  23. while (zahl <= gesammt)
  24. {
  25. zahl += 2;
  26. }
  27. }
  28.  
  29. return 0;
  30. }
Add Comment
Please, Sign In to add comment