- 3
Calculators
Why is my percent for both of these calculators not working? It comes out as an error https://code.sololearn.com/c4b65tZo8xaw/?ref=app https://code.sololearn.com/cfWplXbSjdiu/?ref=app
16 Answers
+ 1
Your Mom , modulo operation can be applied only for integers.
+ 1
You can't use the modulo with a floating point number.
+ 1
Your Mom , yes cast it to integer =>(int) a %(int) b;
+ 1
Your Mom , look at the code.
https://code.sololearn.com/cNihJpIjQgtw/?ref=app
+ 1
use "fmod()" from the math.h / cmath header file .
0
Okay, but why is it still now working?
0
So is there any easy way to fix this?
0
Ye but i think ihave to get user input for that FF9900
0
Okay, so what about this code?
https://code.sololearn.com/caYM8IaTZPvy/?ref=app
0
So Parse is to convert a type ‘string’ into an ‘int’?
- 1
Can you show me what u mean TheWh¡teCat 🇧🇬 ?
- 1
And the C code? TheWh¡teCat 🇧🇬