#include #include void chorus(void); main() { char *verse[][4] = { { "There's a man who lives a life of danger", "To everyone he meets he stays a stranger", "With every move he makes, another chance he takes", "Odds are he won't live to see tomorrow." }, { "Beware of pretty faces that you find", "A pretty face can hide an evil mind", "Be careful what you say, or you'll give yourself away", "Odds are he won't live to see tomorrow." }, { "Swinging on the Riviera one day", "Lying in a Bombay alley the next day", "Don't let the wrong words slip while kissing persuasive lips", "Odds are he won't live to see tomorrow." } }; #define N (sizeof verse / sizeof verse[0]) int v; int i; for (v = 0; v < N; ++v) { for (i = 0; i < 4; ++i) { printf("%s\n", verse[v][i]); } chorus(); } exit(EXIT_SUCCESS); } /* Print the chorus. */ void chorus(void) { int i; printf("\n"); for (i = 0; i < 2; ++i) { printf("Secret Agent Man, Secret Agent Man\n"); printf("They've given you a number, and taken 'way your name.\n"); } printf("\n"); }