Program to find Largest number of three Integer | C++ Programming

C++ is one of the most popular programming languages. It is based on C but is an object-oriented programming language. It is widely used in graphics libraries, games, network devices, etc.
Program to find Largest number of three Integer | C++ Programming
//Program to find Largest number of three Integer
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{clrscr();
int a,b,c,largest;
cout<<"\n enter the integer:";
cin>>a>>b>>c;
largest=(a>b)?(a>c?a:c):(b>c?b:c);
cout<<"\n largest integer is:"<<largest;
getch();
}
Program to find Largest number of three Integer | C++ Programming Program to find Largest number of three Integer | C++ Programming Reviewed by SHERE KHOJRAHA on February 13, 2019 Rating: 5

No comments:

Powered by Blogger.