write a C++ to find the smallest of two nnumbers using if else statement
Answers
Answered by
0
int main()
{
int a,b;
cout<<"enter two numbers";
cin>>a>>"\t"<<b;
if(a<b)
cout<<"smallest number is :<<a;
else
cout<<"smallest number is:"<<b;
getch();
}
{
int a,b;
cout<<"enter two numbers";
cin>>a>>"\t"<<b;
if(a<b)
cout<<"smallest number is :<<a;
else
cout<<"smallest number is:"<<b;
getch();
}
Similar questions