#include <iostream.h>

#include <conio.h>

void main()

{

clrscr();

int largest(int,int,int);

cout<<"Enter 3 Integer Numbers\n";

int a,b,c;

cin>>a>>b>>c;

int result;

result=largest(a,b,c);

cout<<"\n\nLargest Value of Inputed is "<<result;

getch();

}

inline largest(int a,int b,int c)

{

int z;

z=(a>b)?((a>c)?a:c):((b>c)?b:c);

return(z);

}

#include <conio.h>

void main()

{

clrscr();

int largest(int,int,int);

cout<<"Enter 3 Integer Numbers\n";

int a,b,c;

cin>>a>>b>>c;

int result;

result=largest(a,b,c);

cout<<"\n\nLargest Value of Inputed is "<<result;

getch();

}

inline largest(int a,int b,int c)

{

int z;

z=(a>b)?((a>c)?a:c):((b>c)?b:c);

return(z);

}

## 1 comments:

Thanks for sharing useful information.

## Post a Comment