16 G:\Untitled2.cpp invalid operands of types `float' and `int' to binary `operator%'
20 G:\Untitled2.cpp invalid operands of types `float' and `int' to binary `operator%'
24 G:\Untitled2.cpp invalid operands of types `float' and `int' to binary `operator%'
30 G:\Untitled2.cpp expected `;' before "system"
16 G:\Untitled2.cpp invalid operands of types `float' and `int' to binary `operator%'
20 G:\Untitled2.cpp invalid operands of types `float' and `int' to binary `operator%'
24 G:\Untitled2.cpp invalid operands of types `float' and `int' to binary `operator%'
That's because you cannot use the modulo operator(%) to get the reminder of dividing between a float and an int.
30 G:\Untitled2.cpp expected `;' before "system"
You should have brought a ";" after the previous statement.
**Tip** In order to be self reliant, you must be able/practice to understand compilation errors.--No offence.just helping.