How come cout<<7.0%2.0 gives an error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How come cout<<7.0%2.0 gives an error?

#include <iostream> using namespace std; int main() { cout<<7.0%2.0; return 0; } ============ Why does 7.0%2.0 return an error while 7.0/2.0 return a result?

4th Aug 2020, 9:23 PM
Solus
Solus - avatar
0 Answers