#include using namespace std; int main(int argc, char** argv){ float result; result=(340/101); cout<<\"Result=\"<
It's due to integer division, as both operands in the division operation are integers. Either cast one of the numbers to a float, or utilize floating point syntax:
result = (340.0 / 101.0)