hello friends....
TAKE THE FIRST STEP TO KNOWLEDGE FRIENDS BECAUSE KNOWLEDGE IS FREE.
>> /* WRITE A PROGRAM TO FIND OUT MAXIMUM OUT OF THREE NUMBER USING FUNCTION. */
#include<stdio.h>
#include<conio.h>
int maximun();
void main()
{
int a,b,c,max;
clrscr();
printf("enter any three number :\n");
scanf("%d%d%d",&a,&b,&c);
max=maximum(a,b,c);
printf("biggest number : %d\n",max);
getch();
}
int maximum(x,y,z)
{
int big;
if((x>y) && (x>z))
big=x;
else if((y>x) && (y>z))
big=y;
else
big=z;
return big;
}
/* OUTPUT */
=========================
enter any three number :
30
60
20
biggest number : 60
* * * * * * * * * * * * * *http://www.dnpdeveloper.com
if you have like this blog so share and subscribe, comment for this blog.
if your any question, so comment pleass.
MY INSTAGRAM ID : dnp176
Comments
Post a Comment