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

SAP Tcodes

zme27 - Automatic STO creation mmbe - Stock Overview, Material, Batch me51n - Create Purchase Requisition me21n - Create Purchase Order me59...