#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 can add subtract multiply and divide them.
you divide and divide again then multiply then add then subtract then finally get the root
-4224
multiply divide answer subtract add
it can multiply,divide,add and subtract.
No.No.No.No.
to add, you multiply... to subtract, you divide... weird, huh? haha!
In general, Features or Specifications are means the functionality provided in a program. For example, if you have a program which you use as a calculator, the programs features shall be Add, Subtract, Multiply, Divide and so on.
operations