Tuesday, 15 May 2018

how to declare a variable in c++

//A variable is that whose value can be change during the program execution



#include<iostream>
using namespace std;
int main()
{
      int a=10;
      int b=3;
      int sum;
      sum=a+b;
      cout<<"sum is "<<sum;
}

No comments:

Post a Comment