Heading Here
Im Getting declaration syntax error in void func2 (intc, intd), need help fixing it,
and im new to this so i have no idea whats going on..
include <stdio.h>
include <conio.h>
void func1 (int a, int b)
void func2 (int c, int d)
void main (void)
{int a,b;
int c,d;
char ch;
printf (" Enter two numbers ");
scanf (" %d %d"; &a, &b);
printf ("Enter two numbers");
scanf (" %d %d"; &c, &d);
printf ("\n press 1 to call function 1 \n 2. to call function 2");
ch = getche();
switch (ch)
{
case '+':
func1 (a,b);
break;
case '-';
func2 (c,d);
break;
default;
printf ("\n Wrong choices");
}
}
void func1 (int a, int b)
{
printf ("\n Sum=%d", a+b);
}
void func2 (int c, int d)
{
printf ("\n Difference=%d", c-d);
}