Thursday, October 29, 2020

C program of the greatest or the equal number amongst two given numbers

#include <stdio.h>

int main() {

    int x,y;

    printf("Enter x & y:");

    scanf("%d %d",&x,&y);

    if(x>y)

    {

        printf("x=%d is greatest",x);

    }

    else if(y>x)

    {

        printf("y=%d is greatest",y);

    }

    else

    {

        printf("x=y=%d",x);

    }

}

No comments:

Post a Comment

Stop Saying “You’re Asking Me” — Say “We’re Discussing It” ❤️

Right. So um I just realized one thing that um I have been trying to implement in my life also that uh whenever I'm discussing something...