// Integer Vs Floating Point Division

#include<iostream>
using namespace std;

int main()
{
    // Integer division

    int a, b, c;

    a = 10;
    b = 4;
    c = a / b;  // c can hold 2 only, 0.5 is dropped

    cout << "c = " << c << endl;

    // Floating point division

	double x, y, z;

	x = 10;
	y = 4;
	z = x / y; // z can hold 2.5

	cout << "z = " << z << endl;

	return 0;
}
