#ifndef LC
#define LC
#include<Windows.h>
#include<stdio.h>
#define ADD(a,b) ((a)+(b))
#define SUB(a,b) ((a)-(b))
int MUL(a,b)
{
return a*b;
}
float DEV(float a,float b)
{
if(b!=0)
return a/b;
else
printf("Error!The deno cannot be zero!");
}
#endif
#include"LC.h"
main()
{
int a,b;
int sum,product;
float difference,quotient;
printf("Input two numbers:\n");
scanf("%d,%d",&a,&b);
sum=ADD(a,b);
product=SUB(a,b);
difference=MUL(a,b);
quotient=DEV(a,b);
printf("product=%d sum=%d\n",product,sum);
printf("difference=%d quotient=%f\n",difference, quotient);
system("PAUSE");
}


#define LC
#include<Windows.h>
#include<stdio.h>
#define ADD(a,b) ((a)+(b))
#define SUB(a,b) ((a)-(b))
int MUL(a,b)
{
return a*b;
}
float DEV(float a,float b)
{
if(b!=0)
return a/b;
else
printf("Error!The deno cannot be zero!");
}
#endif
#include"LC.h"
main()
{
int a,b;
int sum,product;
float difference,quotient;
printf("Input two numbers:\n");
scanf("%d,%d",&a,&b);
sum=ADD(a,b);
product=SUB(a,b);
difference=MUL(a,b);
quotient=DEV(a,b);
printf("product=%d sum=%d\n",product,sum);
printf("difference=%d quotient=%f\n",difference, quotient);
system("PAUSE");
}

