Check out example codes for "variabvles in c++". It will help you in understanding the concepts better.

Code Example 1

#include <iostream>

using namespace std
  
int main{
	int x = 3;
    float g = 4.0;
    long h = 1234567;
    double j = 1237886.099;
    cout<<x<<endl;
    cout<<h<<endl;
    cout<<g<<endl;
    cout<<j<<endl;
}

Learn ReactJs, React Native from akashmittal.com