SHARE
TWEET

indented for slashdot




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #include <stdio.h>
- int
- main (void)
- {
- int i;
- for (i = 1; i & lt; = 100; i++)
- {
- if (((i % 3) || (i % 5)) == 0)
- printf ("number= %d FizzBuzz\n", i);
- else if ((i % 3) == 0)
- printf ("number= %d Fizz\n", i);
- else if ((i % 5) == 0)
- printf ("number= %d Buzz\n", i);
- else
- printf ("number= %d\n", i);
- }
- return 0;
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.