Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

When was the last time you posted code

Name: Anonymous 2014-06-25 3:48

to /prog/?

For me, I think it was a week and a half ago. Would someone post a reasonable challenge or something?

Name: L. A. Calculus !jYCj6s4P.g 2014-06-25 10:35

>>11
REALLY? HOW MANY FUKIN LINES OF HASKALL WUD IT TAKE TO WRITE DA FOLLOWING PROGRAM? (STICK WITH DA PROCEDURAL PARADIGM, JUNIOR):
#include <stdio.h>

int main(void)
{
const int a[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
size_t i;
int x;

x = 0;
for (i = 0; i < sizeof a / sizeof a[0]; i++)
if (++a[i] % 2 != 0) {
x += a[i];
printf(" %d", a[i]);
}
printf("\n%d\n", x);
return 0;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List