/*C++ program to find greatest of three numbers using if-else-if*/

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

111,690 total views, 166 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.

8,664 Thoughts to “C++ program to find greatest of three numbers using if-else-if”

  1. Head turns allow the eyes to touch upon a scenario.

  2. I delight in, lead to I discovered exactly what I was taking a look for.
    You’ve ended my 4 day lengthy hunt! God Bless you
    man. Have a nice day. Bye minecraft free to play 2018

Leave a Comment