ShriRam Changed status to publish July 16, 2022
#include<stdio.h>
#include<conio.h>
*/
int max(int n1, int n2)
{
return (n1>n2) ? n1 : n2;
}
int min(int n1, int n2)
{
return (n1>n2) ? n2 : n1;
}
void main()
{
int n1,n2,maximum,minimum;
printf("Enter any two numbers: ");
scanf("%d%d", &n1, &n2);
maximum = max(n1, n2);
minimum = min(n1, n2);
printf("\nMaximum = %d\n", maximum);
printf("Minimum = %d", minimum);
getch();
}
ShriRam Changed status to publish July 16, 2022