Skip to content

Instantly share code, notes, and snippets.

@kaldas
Created October 8, 2010 21:50
Show Gist options
  • Select an option

  • Save kaldas/617633 to your computer and use it in GitHub Desktop.

Select an option

Save kaldas/617633 to your computer and use it in GitHub Desktop.
/* ~rcaldasmd~ */
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
if(argc != 3){
fprintf(stderr,"ex: %s 9 7\n",argv[0]);
return -1;
}
fprintf(stdout,"res: %i\n",(atoi(argv[1]) + atoi(argv[2])) * atoi(argv[1]));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment