//Program to display maximum of two integers using conditional operator
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
clrscr();
printf("Enter Two Integer Numbers\n");
scanf("%d%d",&a,&b);
c=a>b?a:b;
printf("%d is Maximum",c);
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.
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
clrscr();
printf("Enter Two Integer Numbers\n");
scanf("%d%d",&a,&b);
c=a>b?a:b;
printf("%d is Maximum",c);
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.