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

hay look at my recursive pow

Name: Anonymous 2009-03-04 20:14


#include <stdio.h>
#include <stdlib.h>

unsigned long long rpow(int n, int p) {
  return p ? p==1 ? n : n * rpow(n,p-1) : 1;
}

int main(int argc, char **argv) {
  if(argv[1])
    if(argv[2]) {
      int n = atoi(argv[1]);
      int p = atoi(argv[2]);
      printf("%llu\n",rpow(n,p));
    }
  return 0;
}

Name: Anonymous 2009-03-11 16:35

>>97
No, you don't have anything better to do with your time. You wouldn't be trolling /prog/ if you didn't have copious amount of spare time, due to your lack of a job and of a girlfriend. Which means that you simply can't do any better than bumping random threads, and we don't care.
Doesn't it suck to feel so powerless? You're such a failure you can't even manage to hurt in any significant way an almost unmoderated anonymous board with no serious flood control system.

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