#include<iostream.h>
#include<conio.h>
void greater(int a,int b,int c);
void main()
{
clrscr();
int a,b,c;
cout<<"enter 3 nos";
cin>>a>>b>>c;
greater(a,b,c);
getch();
}
void greater(int a,int b,int c)
{
if(a>b&&a>c)
{
cout<<a<<"is greater";
}
else
{
if(b>c)
{
cout<<b<<" is greater";
}
else
{
cout<<c<<" is greater";
}
}
}
#include<conio.h>
void greater(int a,int b,int c);
void main()
{
clrscr();
int a,b,c;
cout<<"enter 3 nos";
cin>>a>>b>>c;
greater(a,b,c);
getch();
}
void greater(int a,int b,int c)
{
if(a>b&&a>c)
{
cout<<a<<"is greater";
}
else
{
if(b>c)
{
cout<<b<<" is greater";
}
else
{
cout<<c<<" is greater";
}
}
}