Wednesday, 31 August 2016

WAP TO ADD TWO NO.

#include<iostream.h>
#include<conio.h>
void main()
{
  int a,b,sum;
  clrscr();
  cout<<"Enter the first no.:";
  cin>>a;
  cout<<"Enter the second no.:";
  cin>>b;
  sum=a+b;
  cout<<"Sum of two no. is:"<<sum;
  getch();
}

No comments:

Post a Comment