I have read the “C development on Linux” articles. I was then able to successfully able to create the FizzBuzz. Now how do I get it to sleep for a second each time it prints a line? Here is what I have so far:
#include <stdio.h>
int main() {
int n = 1;
char fz[] = "Fizz";
char bz[] = "Buzz";
char fb[] = "FizzBuzz";
for ( n = 1; n < 101 ; ++n )
if ( n % 15 == 0 )
printf("%s
", fb);
else if ( n % 5 == 0 )
printf("%s
", fz);
else if ( n % 3 == 0 )
printf("%s
", bz);
else
printf("%d
", n);
return 0;
}