//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();
}
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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment