Skip to content

Instantly share code, notes, and snippets.

Created September 20, 2012 21:07
Show Gist options
  • Save anonymous/3758356 to your computer and use it in GitHub Desktop.
Save anonymous/3758356 to your computer and use it in GitHub Desktop.
functions
#include <stdio.h>
int foo();
int main(int argc, char * argv[])
{
foo();
}
int foo()
{
int a, b, c = 0;
int x = 10;
int d, e = 0;
printf("Number: ", a, b, c);
scanf("%d %d %d", &a, &b, &c);
d = x + a + b + c;
e = d/4;
printf("Your number is: %d\n ", e);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment