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

38,770 total views, 4 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.

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

  1. buy cialis 2.5 mg
    viagra without a prescription
    order cialis phone

Leave a Comment