Yes, 6 x 9 = 42

written by jedi on November 2nd, 2008 @ 09:12 PM

#define NINE 8 + 1
#define SIX 1 + 5

int main(void) {
    printf("%d times %d is %d\n", SIX, NINE, SIX * NINE);
    return 0;
}

Comments

  • Jean-Baptiste Quenot on 03 Nov 11:29

    And it’s interesting to note that multiplication is not commutative anymore: 6 times 9 is 14

  • Xavier Nicollet on 24 Nov 09:19

    define NINE (8 + 1)

    It’s a good practice.

  • Frank on 27 Nov 21:11

    Xavier: ehm, sure, but if you didn’t read the book: http://fr.wikipedia.org/wiki/La_Grande_Question_sur_la_Vie,_l’Univers_et_le_Reste

Comments are closed

Options:

Size

Colors