Skip to content

Instantly share code, notes, and snippets.

@spaghetti-
Created August 12, 2012 04:00
Show Gist options
  • Save spaghetti-/3329625 to your computer and use it in GitHub Desktop.
Save spaghetti-/3329625 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <math.h>
int main(int argc, char** argv){
int a = atoi(argv[1]);
int b = atoi(argv[2]);
int c = ((a+b)-abs(a-b))/2;
printf("%d %d %d", a, b, c);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment