#include<iostream.h> int main() { for(int i=0; i<10; i++) if(i&2) cout<<i; } | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include<iostream.h> int main() { for(int i=0; i<10; i++) if(i&2) cout<<i; }

...f...

9th Dec 2019, 5:43 AM
Mahmoud Taher
Mahmoud Taher - avatar
1 Answer
+ 1
Kindly learn about bitwise AND operator and solve the "if" for yourself.
9th Dec 2019, 5:54 AM
Avinesh
Avinesh - avatar