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

Tuesday, August 11, 2020

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

#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();

}

You Might Also Like

0 Comments

Like us on Facebook

Flickr Images

Flickr Short Films