//this is a number to find the smallest among two numbers
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int num1,num2;
cout<<"\n\nEnter any two numbers: ";
cin>>num1>>num2;
if(num1<num2)
cout<<"\n\nThe number "<<num1<<" is smallest.";
else if(num2<num1)
cout<<"\n\nThe number "<<num2<<" is smallest.";
else
cout<<"\n\nBoth numbers are equal.";
return 0;
getch();
}
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int num1,num2;
cout<<"\n\nEnter any two numbers: ";
cin>>num1>>num2;
if(num1<num2)
cout<<"\n\nThe number "<<num1<<" is smallest.";
else if(num2<num1)
cout<<"\n\nThe number "<<num2<<" is smallest.";
else
cout<<"\n\nBoth numbers are equal.";
return 0;
getch();
}