#include<stdio.h>
#include<math.h>
#define pi 3.14
int main ()
{
float a,b;
int option;
printf("select the value of a="); printf("select the value of b="); printf(" 1.Addition\n 2.Subtraction\n 3.Multiplication\n 4.Division\nChoose an option=\n"); if (option==1)
{
printf("The addition is %f\n",a
+b
); }
else if (option==2)
{
printf("The subtraction is %f\n",a
-b
); }
else if (option=3)
{
printf("The multiplication is %f\n",a
*b
); }
else if (option=4)
{
printf("The division is %f\n",a
/b
); }
else
{
}
}
CiNpbmNsdWRlPHN0ZGlvLmg+CiNpbmNsdWRlPG1hdGguaD4KI2RlZmluZSBwaSAzLjE0CgppbnQgbWFpbiAoKQoKewoKICAgIGZsb2F0IGEsYjsKICAgIGludCBvcHRpb247CiAgICBwcmludGYoInNlbGVjdCB0aGUgdmFsdWUgb2YgYT0iKTsKICAgIHNjYW5mKCIlZiIsJmEpOwogICAgcHJpbnRmKCJzZWxlY3QgdGhlIHZhbHVlIG9mIGI9Iik7CiAgICBzY2FuZigiJWYiLCZiKTsKICAgIHByaW50ZigiIDEuQWRkaXRpb25cbiAyLlN1YnRyYWN0aW9uXG4gMy5NdWx0aXBsaWNhdGlvblxuIDQuRGl2aXNpb25cbkNob29zZSBhbiBvcHRpb249XG4iKTsKICAgIHNjYW5mKCIlZCIsJm9wdGlvbik7CiAgICBpZiAob3B0aW9uPT0xKQogICAgewogICAgICAgIHByaW50ZigiVGhlIGFkZGl0aW9uIGlzICVmXG4iLGErYik7CiAgICB9CiAgICBlbHNlIGlmIChvcHRpb249PTIpCiAgICB7CgogICAgICAgIHByaW50ZigiVGhlIHN1YnRyYWN0aW9uIGlzICVmXG4iLGEtYik7CiAgICB9CiAgICBlbHNlIGlmIChvcHRpb249MykKICAgIHsKCiAgICAgICAgcHJpbnRmKCJUaGUgbXVsdGlwbGljYXRpb24gaXMgJWZcbiIsYSpiKTsKICAgIH0KICAgIGVsc2UgaWYgKG9wdGlvbj00KQogICAgewoKICAgICAgICBwcmludGYoIlRoZSBkaXZpc2lvbiBpcyAlZlxuIixhL2IpOwogICAgfQogICAgZWxzZQogICAgewogICAgICAgIHByaW50ZigiSW52YWxpZCBPcHRpb24iKTsKICAgIH0KfQo=