//prg to find greatest using conditional
//Downloaded From www.c4cpp.co.nr. (C)2009.All rights reserved.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,by;
cout<<"Enter 2 nos"<<endl;
cin>>a>>b;
by=(a>b)?a:b;
cout<<"Greatest = "<<by;
getch();
}
Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]
Greatest of 3 Nos. using Conditional
Click Here To Download C++ File Of This Program
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment