0
Explain it...
Input format: integer sign(+, -, *, /) integer Now why it shows 0.0 when I enter 1/2 ? https://code.sololearn.com/cKyKUYJsXXVA/?ref=app
2 Answers
+ 1
Line 18:
Change to
static double clac4(float n1, float n2)
OR
static double clac4(double n1, double n2)
0
Got it... thanks...