Program to display the maximum of two user entered numbers

//Program to display the maximum of two user entered numbers
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b;
clrscr();
printf("Enter Two Integer Numbers\n");
scanf("%d%d",&a,&b);
if(a>b)
printf("%d is Maximum",a);
else
       printf("%d is Maximum",b);


getch();
return 0;
}


To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.

No comments:

Post a Comment