/*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();
}

74,466 total views, 42 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.

5,771 Thoughts to “C++ program to find greatest of two numbers”

  1. Link exchange is nothing else except it is only placing the other person’s website link on your page at proper place
    and other person will also do similar in support
    of you.

  2. Hi there, this weekend is nice for me, as this time i am reading this fantastic informative piece of writing here at my house.

Leave a Comment