C++ Program to add two number.

Spread the love..

#include<iostream>
using namespace std;
int main()
{
    int a,b,c;
    cout<<"\nEnter value of a:=";
    cin>>a;
    cout<<"\nPut value of b:=";
    cin>>b;
    c=a+b;
    cout<<"\na="<<a;
    cout<<"\nb="<<b;
    cout<<"\nsum="<<c;
return 0;
}

Spread the love..

Leave a Reply

Your email address will not be published. Required fields are marked *