All pastes #444855 Raw Edit

Something

public c v1 · immutable
·published 2007-04-17 15:33 UTC
rendered paste body
#include <stdio.h>#include <stdlib.h>#include <string.h>typedef unsigned int uint32_t;int main(void) {    /* Here just to limit the output */    int j=0;    uint32_t i;    for (i = 10; i >= 0; i--) {        char b1[2], b2[2];        strcpy(b1, "s");        strcpy(b2, "s");        if (i == 1) strcpy(b1, "");        else if (i-1 == 1) strcpy(b2, "");        printf("%u bottle%s of beer on the wall, %u bottle%s of beer, ", i, b1, i, b1);        printf("you take 1 down, pass it around, %u bottle%s of beer on the wall.\n", (i-1), b2);        /* Still, just to limit output */        if (++j > 20) break;    }    return 0;}