Addition of 2 Numbers in C++

#include<iostream.h>
#include<conio.h>

void main()
{
    int i,j,add;
    clrscr();
    cout<<"Enter 1st Number";
    cin>>i;
    cout<<"Enter 2nd Number";
    cin>>j;
    add=i+j;
    cout<< "Addition  ="<<add;
    getch();


}

No comments:

Post a Comment

Related Post

Array:
String functions:
General (Loops-for/while)
Write a Program to print reverse of a given number Write a Program to print Product of Digits (eg. 212=2*1*2=4) of a given number Write a C++ Program to Convert Binary into Decimal Number