Find the largest of three numbers

Saturday, July 4, 2009 Leave a Comment

If you need more C++ programs then comment. More comments means the more number of programs. Don't forget to tell a friend.... Do you like this website?........Keep connected....

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c,big;
clrscr();
cout<<"enter any three no.:";
cin>>a>>b>>c;
big=a;
if(b>big)
big=b;
if(c>big)
big=c;
cout<<"largest of the three no.="<<big;
getch();
}

                                        Output
Enter three number :10  20  15
Largest of the three no.=20

Related Posts :



0 comments »

Leave your response!