#include using namespace std; int main(int argc, char** argv){ float result; result=(340/101); cout<<\"Result=\"<
Because the expression (340/101) is evaluated independent of its surrounding context. int/int always results in an int. It makes no difference if you store that int in a float variable later on.
(340/101)
int/int
int
float