Wednesday, 24 July 2013

SIMPLE PROGRAM TO ADD TWO NUMBERS

//SIMPLE PROGRAM TO ADD TWO NUMBERS
/*MADE BY KRISHNA AGARWAL*/
#include<iostream>
using namespace std;
int main()
{
    int a,b,c;
    cout<<"enter the value of a=";
    cin>>a;
    cout<<"enter the value of b=";
    cin>>b;
    c=a+b;
    cout<<"the sum is="<<c;
    return 0;
}

No comments:

Post a Comment