Wednesday, October 28, 2020

C program to find the greatest of two numbers

#include <stdio.h>

int main() 

{

    int a,b;

    printf("Enter a & b:");

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

    if(a>b)

    {

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

    }

    else

    {

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

    }

    return 0;

}

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...