#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("Enter the two numbers");
scanf("%d %d",&a,&b);
c=(a>b)?a:b;
printf("The value of ternary operation on c is %d",c);
getch();
}
#include<conio.h>
void main()
{
int a,b;
printf("Enter the two numbers");
scanf("%d %d",&a,&b);
c=(a>b)?a:b;
printf("The value of ternary operation on c is %d",c);
getch();
}
No comments:
Post a Comment