C++ examples for Data Type:Introduction
Use assignment operator to assign value
#include <iostream> using namespace std; int main()//from w w w.j av a2 s . com { int sum; sum = 25; cout << "The number stored in sum is " << sum << endl; sum = sum + 10; cout << "The number now stored in sum is " << sum << endl; return 0; }