Program to find maximum and minimum of two numbers in C

Program

#include<stdio.h>
int main()
{
    int a,b,max,min ;
    printf("*********************************************************");
    printf("\n*********************************************************");
    printf("\n** WAP to find maximum and minimum of two numbers in C **");
    printf("\n**                Created by Sheetal Garg              **");
    printf("\n**                 Assistant Professor                 **");
    printf("\n**                 Phone No:9467863365                 **");
    printf("\n*********************************************************");
    printf("\n*********************************************************");
    printf("\nenter two numbers");
    scanf("%d%d",&a,&b);
    if(a>b)
    max=a;
    else
    max=b;
    printf("maximum is %d",max);
    if(a<b)
    min=a;
    else
    min=b;
    printf("\nminimum is %d",min); 
    return 0;
}

Output

*********************************************************
*********************************************************
** WAP to find maximum and minimum of two numbers in C **
**                Created by Sheetal Garg              **
**                 Assistant Professor                 **
**                 Phone No:9467863365                 **
*********************************************************
*********************************************************
enter two numbers
4
7
maximum is 7
minimum is 4
error: You can only copy the programs code and output from this website. You are not allowed to copy anything else.