My compiler says "too few arguments in the function". I can not figure out what is wrong. Does anyone have any idea on what I am doing wrong?
#include<stdio.h>
#include<math.h>
int show(int a, int b, int c);
main( ){
int a, b = 10, c = 24;
printf("Enter a number\n");
scanf("%d\n", &a);
show(int a, int b, int c);
system("pause");
}
int show(int a, int b, int c){
if(a>c){
printf("a is the largest number\n");
} else if(a>b){
printf("a is smaller than c\n");
} else if(a<b){
printf("a is bigger than b\n");
} else{
printf("a is the smallest number \n");
}
return;
}