Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Programming, Motherf*cker

Michał Paluchowski
August 29, 2012
170

Programming, Motherf*cker

Introduction to what programmers do, for non-programmers.

Michał Paluchowski

August 29, 2012
Tweet

Transcript

  1. The computer only does what you tell it to do.

    Not what you want it to do. „ Anon.
  2. printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2

    == 0 ) printf("Even\n"); else printf("Odd\n");
  3. printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2

    == 0 ) printf("Even\n"); else printf("Odd\n");
  4. printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2

    == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an inte scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n");
  5. printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2

    == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an inte scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n");
  6. printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2

    == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an inte scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n");
  7. printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2

    == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an inte scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n"); printf("Enter an integer\n"); scanf("%d", &n); if ( n % 2 == 0 ) printf("Even\n"); else printf("Odd\n");