- 👋 Hi, I’m @ShreyaSamridhi
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h>
float main() {
float a,b,c,z,y,x,w; printf("Enter 1st number; "); scanf("%0.2f",&a); printf("Enter 2nd number; "); scanf("%0.2f",&b); printf("Enter the function you want to peform;\n 1.Press 1 for add\n 2.Press 2 for subtract\n 3.Press 3 for multiplication\n 4.Press 4 for division "); scanf("%0.2f",&c); z=a+b; y=a-b; x=a*b; w=a/b; if (c==1) {printf("The awnser is ;%0.2f",z);} if (c==2) {printf("The awnser is ;%0.2f",y); } if (c==3) {printf("The awnser is ;%0.2f",x); } if (c==4) {printf("The awnser is ;%0.02f",w); } }