#include<stdio.h>
void main()
{
float n,a,b;
printf("enter 1 for addition\n");
printf("enter 2 for subtraction\n");
printf("enter 3 for multiplication\n");
printf("enter 4 for division\n");
scanf("%d",&n);
if(n>=1&&n<5)
{
printf("enter first number:");
scanf("%f",&a);
printf("enter second number:");
scanf("%f",&b);
if(n==1)
{
printf("%f+%f=%f",a,b,a+b);
}
else if(n==2)
{
printf("%f-%f=%f",a,b,a-b);
}
else if(n==3)
{
printf("%f*%f=%f",a,b,a*b);
}
else
{
printf("%f/%f=%f",a,b,a/b);
}
}
else
{
printf("enter valid number");
}
}