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

97,786 total views, 56 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.

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

  1. Have you ever thought about publishing an ebook or guest authoring on other websites?
    I have a blog based on the same information you discuss and would really like to have you share
    some stories/information. I know my audience would enjoy your work.
    If you are even remotely interested, feel free to send me an e-mail.

  2. I’m pretty pleased to discover this site. Ӏ wantеd to thank you for your time due to thiѕ
    fantastic read!! I definitely аppreciated every part of
    it and i also have yyou saved to fav to look aаt new information on your website. https://yo.vg/blog/3957/designing-your-online-email-marketing-technique-to-outshine-competition/

  3. It’s wonderful that you are getting thoughts from this post as well as from our dialogue
    made at this place.

Leave a Comment