#include<iostream>
using namespace std;
#include<conio.h>
void max(int,int);
void max(float,float);
void main()
{
int a,b;
float c,d;
cout<<"Enter Integer1: ";
cin>>a;
cout<<"Enter Integer2: ";
cin>>b;
cout<<"Enter Float1 :";
cin>>c;
cout<<"Enter Float2: :";
cin>>d;
max(a,b);
max(c,d);
getch();
}
void max(int a,int b)
{
if(a>b)
{
cout<<"The Greater Integer= "<<a<<"\n";
}
else
{
cout<<"The Greater Integer= "<<b<<"\n";
}
}
void max(float c,float d)
{
if(c>d)
{
cout<<"The Greater Float= "<<c<<"\n";
}
else
{
cout<<"The Greater Float= "<<d<<"\n";
}
}
using namespace std;
#include<conio.h>
void max(int,int);
void max(float,float);
void main()
{
int a,b;
float c,d;
cout<<"Enter Integer1: ";
cin>>a;
cout<<"Enter Integer2: ";
cin>>b;
cout<<"Enter Float1 :";
cin>>c;
cout<<"Enter Float2: :";
cin>>d;
max(a,b);
max(c,d);
getch();
}
void max(int a,int b)
{
if(a>b)
{
cout<<"The Greater Integer= "<<a<<"\n";
}
else
{
cout<<"The Greater Integer= "<<b<<"\n";
}
}
void max(float c,float d)
{
if(c>d)
{
cout<<"The Greater Float= "<<c<<"\n";
}
else
{
cout<<"The Greater Float= "<<d<<"\n";
}
}
No comments:
Post a Comment