/********************************************************* * Mickey Mouse * CSC230, Fall 2011 * HW1, Due August 26, 2011 * * pgm01 - This program outputs a simple message. It just * shows I can format, compile, test, debug, and submit * a C program. *********************************************************/ #include /** * This function is the popular fizzbuzz programming test. * For every number from 1 to 'n', inclusive, output * "fizz\n" if the number is divisible by 3, "buzz\n" if the * number is divisible by 5, and "fizzbuzz\n" if both. The * correct output if 'n' was equal to 15 would be * fizz * buzz * fizz * fizz * buzz * fizz * fizzbuzz * because of the numbers, 3, 5, 6, 9, 12, and 15. * The only difference between this program in C and this * program in Java is that instead of using System.out.print, * you use printf(). */ void fizzbuzz( int n ) { // write your code here } /** * The pyramid function prints out a pyramid of stars where the * highest point of the pyramid is 'n' stars high. If n was equal * to 4, the output would be: * * * * ** * *** * **** * *** * ** * * * * Remember that newlines are not printed automatically, so you * could print "**" by running printf("*"), printf("*"), printf("\n"). */ void pyramid( int n ) { // write your code here } /** * Starts the program. Make sure that you complete the * statement so that the first line of output reads: * Hello World! */ int main () { printf ("Hello\n"); fizzbuzz(100); pyramid(10); return 0; }