#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, c, d, e, f, ch;
printf("Enter the first no. : ");
scanf("%d", &a);
printf("Enter the second no. : ");
scanf("%d", &b);
printf("Enter the choice as \n 1.Add\n 2.Sub\n 3.Multiply\n 4.Divide \n");
scanf("%d", &ch);
switch(ch)
{
case 1:
c=a+b;
printf("%d", c);
break;
case 2:
d=a-b;
printf("%d", d);
break;
case 3:
e=a*b;
printf("%d", e);
break;
case 4:
f=a/b;
printf("%d", f);
break;
default:
printf("Wrong Input");
break;
}
getch();
}
Divide.
Take a look at the Windows Calculator.
-4224
to add, you multiply... to subtract, you divide... weird, huh? haha!
add, subtract, multiply, divide
Divide.
Divide.
Take a look at the Windows Calculator.
you divide and divide again then multiply then add then subtract then finally get the root
you can add subtract multiply and divide them.
-4224
it can multiply,divide,add and subtract.
No.No.No.No.
multiply divide answer subtract add
to add, you multiply... to subtract, you divide... weird, huh? haha!
operations
Add, subtract, multiply, divide.