Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- double gesammt = 20;
- double zahl = 1;
- double modulo = gesammt % 2;
- double counter = 1;
- double fak = 1;
- while (modulo == 0)
- {
- counter = 0;
- while (counter <= zahl)
- {
- fak = fak * counter;
- counter ++;
- }
- printf ("%d\n", fak);
- while (zahl <= gesammt)
- {
- zahl += 2;
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment