Friday, October 1, 2010

conditional operators in c

int main()
{
int a,b,max;
printf("enter two numbers\n");
scanf("%d %d",&a,&b);
max=(a>b)? a : b;
printf("greator number is %d",max);
getch();
}

No comments:

Post a Comment

Google+ Followers