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

ITT the ABC Programming Language

Name: Anonymous 2008-07-29 19:29

#include <stdio.h>

int main(int argc,char argv*[]){
  int i = 0;
  int BUFFA;

  while(argv[i]!='\0'){
    if(argv[i]='a')
      BUFFA++;
    else if(argv[i]='b')
      BUFFA--;
    else if(argv[i]='c')
      printf("%i\n",BUFFA);
    else printf("%s","Error.\n");
  }
}

Name: Anonymous 2011-01-02 21:32

How do you interpret r - Set accumulator to a random number between 0 and accumulator?

Is the accumulator now strictly between 0 and its previous value, or is 0 included in the set of possible values?

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