we can use int and float to describe the value in number and decimals

     int                  use for simple number like 15

      float               use for decimals likes 2.5

simply we use int like this


int x=15;

 and float use like this

float y=2.5;


so in c++ we wright like this



......,.,..,....,,,,,,,,,,,,,,,,,,.....................................................................




#include<iostream>


using namespace std;


void main()


{


    int x = 15;


    float y = 2.5;


    cout << "x=15" << endl;

    cout << "y=2.5" << endl;


    cout << "x+y=" << x + y << endl;


    system("pause");


}

when we run