Created
September 20, 2012 21:07
-
-
Save anonymous/3758356 to your computer and use it in GitHub Desktop.
functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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