C++ assignment operator to assign value

Description

C++ assignment operator to assign value

#include <iostream>
using namespace std;
int main()//from   w  ww. jav a2 s  .  c o m
{
   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;
}



PreviousNext

Related