0

In c++, can the modulo operator (%) be applied directly to floating -point numbers? such as float or double?

cout << 5.0 % 2; If the compiler produces error, is there any way to do it? Can anyone please clarify?

22nd May 2024, 2:39 AM
Mahmuda Akter Moon
1 Resposta
22nd May 2024, 3:52 PM
Mahmuda Akter Moon