Sunday, December 16, 2012

FIND THE DIFFERENCE BETWEEN TWO NUMBERS IN C++


#include<iostream.h>
void main()
{
int no1,no2,d;
cout<<"ENTER THE FIRST NUMBER : ";
cin>> no1;
cout<<"\nENTER THE SECOND NUMBER : ";
cin>>no2;
d=no1-no2;
cout<<"\nTHE DIFFERENCE OF TWO NUMBERS IS : "<<d;
}

No comments: