So today i got bored so i decided to write this simple code to see what happens:
1 2 3 4
int x = 7;
int y = 22;
int z = 7/22;
cout << z << endl;
Result: 0
Now my question is, since 7 divided by 22 is actually like 3.141592653589796....
so on and so on forever (If you haven't noticed yet, its "pi") why did it give me 0?