Feed Headline Animator

write a program to find out the greater value from two given values(NOT Operator)

main( )
{
int s,a;
printf(“/n Enter 1st integer value “);
scanf(“%d”,&s);
printf(“/n Enter 2nd Value”);
scanf(“%d”,&a);
! (s>a)? s:a;
printf( “1st is greater”): printf (“ 2nd is greater “);
getch();
}

Posted by: Wasim Javed

No comments:

Post a Comment