# 13552 - Easy math problems >author: Utin ###### tags: `math` --- ## Brief See the code below ## Solution 0 ```c= #include <stdio.h> int main() { float x, y; char c; scanf("%f %c %f", &x, &c, &y); if (c == '/') printf("%.3f\n", x / y); else if (c == '*') printf("%.3f\n", x * y); else if (c == '+') printf("%.3f\n", x + y); else if (c == '-') printf("%.3f\n", x - y); } // By Utin ``` ## Reference
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up