int main(int argc,char*argv[]) { externint multiply(); externint sum(); int a, b; int result; printf("Please input a and b: "); scanf("%d, %d",&a,&b);
result = multiply(a, b); printf("The result of multiply is: %d",result);
result = sum(a, b); printf("\nThe result of sum is: %d\n", result);
system("pause"); return 0; }
//file.c
#include<stdio.h>
externint multiply(int a,int b) { int c;
c = a * b; return c;
}
//file2.c
#include<stdio.h>
externint sum(int a,int b) { int c;
c = a + b; return c; }