Int Main problem

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<stdio.h>
void Mid_Display (int x,int y, int z)
int main()
{
int x,y,z;
printf("MID NUMBER DISPLAYER\n");
printf("Input three numbers:\n");
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &z);
Mid_Display(int x, int y, int z);

return 0;
}
void Mid_Display (int x,int y, int z)
{
if ( x>=z && x<= y)
printf("%d",  x);
if (y >= x && y <=z)
printf("%d", y);
if (z >=x && z<=y)
printf("%d", z);
}




The error says declaration syntax error but I can't find anything wrong. Not that I know of.
closed account (z05DSL3A)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<stdio.h>
void Mid_Display (int x,int y, int z)
int main()
{
int x,y,z;
printf("MID NUMBER DISPLAYER\n");
printf("Input three numbers:\n");
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &z);
Mid_Display(int x, int y, int z);

return 0;
}
void Mid_Display (int x,int y, int z)
{
if ( x>=z && x<= y)
printf("%d",  x);
if (y >= x && y <=z)
printf("%d", y);
if (z >=x && z<=y)
printf("%d", z);
}

<--- missing ;








<---- drop the ints from the call 
Mid_Display( x,  y,  z);
Last edited on
ofcourse! thank you
Topic archived. No new replies allowed.