Thursday, March 20, 2008

C because B came before it.

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

int main() {

    char ans;

    printf("         (__)\n");
    printf("         (oo)\n");
    printf("  /-------\\/\n");
    printf(" / |  %%%% ||\n");
    printf("*  ||----||\n");
    printf("   \"\"    \"\"\n");

    do {
      fflush(stdin);
      printf("Are you a Cow? (y/n) ");
      scanf("%c", &ans);
      ans = toupper(ans);
    } while (ans != 'Y');

    printf("\nThank you for participating in something lame brought to you by yours truly.\n");

    system("PAUSE");
    return 0;
}

Are you a Cow?

No comments: