WAP IN C TO MAKE CALCULATOR USING LAMBDA.

IT IS EASY TO DO CALCULATION.
#include
#define Lambda 5
int main()
{
int a,b,c;
clrscr();
printf("enter the number\n");
scanf("%d%d",&a,&b);
c=(a+b)+(Lambda);
printf("%d is the addition",c);

printf("enter two no\n");
scanf("%d%d",&a,&b);
c=(a-b)-(Lambda);
printf("%d is substraction",c);

Printf("enter two no\n");
scanf("%d%d",&a,&b);
c=(a*b)*(Lambda);
printf("%d is multiplication ",c);

printf("enter two no\n");
scanf("%d%d",&a,&b);
c=(a/b)/Lambda;
printf("%d is division ",c);

printf("enter two no\n");
scanf("%d%d",&a,&b);
c=(a%b)%(Lambda);
printf("%d is remainder",c);
return 0;
getch();


}

🎭 Series Post

View all