ain()
{int d,a,b,c;
printf("\n1. addition");
printf("\n2. multiplication");
printf("\n3. subtraction");
printf(“enter your choice to calculate”,d);
scanf("%d",&d);
switch(d)
{
case 1:
printf(“enter two no”);
Scanf("%d %d",&a,&b);
c=a+b;
printf("\nthe sum of %d and &d is %d",a,b,c);
break;
case 2:
printf(“enter two no”);
scanf("%d %d",&a,&b);
c=a*b;
printf("\nthe multiplication of %d and %d is %d",a,b,c);
break;
case 3:
printf(“enter two no”);
scanf("%d %d",&a,&b);
c=a-b;
printf("\nthe subtraction of %d and %d is %d",a,b,c);
break;
default:
printf("\ninvalid calculate");
}
}
*ERROR IS WRITTEN LIKE undefined refernce for scanf in Codeblock*