Thursday, 8 May 2014

Write a program which accept two numbers and print their sum

Leave a Comment
Write a program which accept two numbers and print their sum.

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
    int number1,number2,sum=0;
    cout<<"Enter Number 1 value = ";
    cin>>number1;
    cout<<"Enter Number 2 value = ";
    cin>>number2;
    sum=number1+number2;
    cout<<"Sum is = "<<sum;
    getch();
}
If You Enjoyed This, Take 5 Seconds To Share It