Subscribe to Feeds

Send Your COMPLETED Projects To georgepj@hotmail.com

We'll Publish It With Your Name :-)

Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]

Greatest of 3 Nos.

Click Here To Download C++ File Of This Program

 //prg to find greatest of 3 nos  
//Downloaded From www.c4cpp.co.nr. (C)2009.All rights reserved.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,bi;
cout<<"Enter 3 nos"<<endl;
cin>>a>>b>>c;
bi=a>b?(a>c?a:c):((b>c)?b:c);
cout<<"Greatest = "<<bi;
getch();
}

No comments: