int x = 32 % 4;
int y= 21 / 15;
cout << x < y;
Cout has '<' overloaded, so you want to put "x<y" inside braces;
int main() { int x = 32 % 4; int y= 21 / 15; cout << (x < y); // 1 return 0; }
Or, if you want "cout<<x<<y"; the output will be "01"
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment