Header Ads Widget

Responsive Advertisement

If else condition find out the maximum number

 #include<stdio.h>

int main ()

{

    int a,b;

    printf("Enter the value of a\n :");

    printf("Enter the value of b\n :");

    

    scanf("%d%d",&a,&b);

    if(a>b)

        {

             printf("a");

        }

else

        {

            printf("b");

        }

    return 0;

}

Post a Comment

0 Comments