+ 1
Programming
Can is it possible to have modulus of integer by double...means as following experssion is valid or not in C++???? Int x:10; Int y:7; Double z:4.5; (x+y)%z
8 Respuestas
+ 7
BTW the way you have defined the variables is not the C++ way.
+ 5
You can also try it on code playground to find out.
+ 3
Sonic i know its not the C++ way.....i just ask a simple ques about that
+ 3
Zainab Fatima that's OK then.
+ 2
~ swim ~ thanks
0
Yes, you can
Just write above expression as
((10+7)*10)/45