Joined
Last Seen
-3 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: You can try this [CODE]#include<stdio.h> #include<conio.h> main() { clrscr(); float a,b,d; char c; printf("Enter the value of the first operand:"); scanf("%f",&a); printf("Enter the value of the second operand:"); scanf("%f",&b); printf("Enter the operator to be used:(+,-,*,/)"); scanf("%s",&c); { if(c=='+') {d=a+b; printf("The sum of %f and %f is %.2f",a,b,d);} else if(c=='-') {d=a-b; … |
The End.