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 Lifting Light Weights to Building Confidence 💪 | My Fitness Journey ✨

  https://www.youtube.com/watch?v=nyX7g3GRGDw Hi, namaste Kam. So I had to make this video about how I joined the gym and it did made a grea...