/*C++ program to find greatest of two numbers*/

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
cout<<“enter the values of a,b:”;
cin>>a>>b;
if(a>b)
{
cout<<a<<“is greater”;
}
else
{
cout<<b<<“is greater”;
}
getch();
}

54,309 total views, 8 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

4,522 Thoughts to “C++ program to find greatest of two numbers”

  1. Oh my goodness! a tremendous article dude. Thank you However I’m experiencing problem with ur rss . Don’t know why Unable to subscribe to it. Is there anybody getting similar rss drawback? Anybody who is aware of kindly respond. Thnkx

Leave a Comment