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

From a Mother’s Passion to Real Impact: 20+ Years of Quiet Consistency

 my mom has been doing research on every products since more than 20 years along with managing family of around 20 members and upbringing me...