PROGRAM-:
#include<iostream.h>
#include<conio.h>
int min(int,int);
void main()
{
clrscr();
int a,b,c,d;
cout<<"enter four integers";
cin>>a>>b>>c>>d;
cout<<"minimun no. ="<<min(min(a,b),min(c,d));
getch();
}
int min(int x,int y)
{
return((x<y)?x:y);
}
#include<iostream.h>
#include<conio.h>
int min(int,int);
void main()
{
clrscr();
int a,b,c,d;
cout<<"enter four integers";
cin>>a>>b>>c>>d;
cout<<"minimun no. ="<<min(min(a,b),min(c,d));
getch();
}
int min(int x,int y)
{
return((x<y)?x:y);
}
0 comments:
Post a Comment