Variables syntax in CPP

Practice # 2

Here is I Defined the syntax of variable ion CPP. The int main is the entry point of the program, here's the program is started. The iostream is the header or library file.

#include<iostream>
using namespace std;

int main(){
    /*
    veriables are the containers which stores some types of date or
    data type. And could be integer, float, charecters etc.
    Here we use a veriable with its data type 
     */

    //here 'sum' is a verable and 'int' its data type.
    //and which is assined the number 6 that stored in memory.
    int sum=6;

    cout<<"HELLO WORLD "<<sum;

    return 0;
}

Comments