Powered By Blogger

Feb 11, 2025

11. Find the Largest of Three Numbers c Copy Edit

 #include <stdio.h>

int main() {

    int a, b, c;

    printf("Enter three numbers: ");

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

    if (a >= b && a >= c)

        printf("Largest: %d\n", a);

    else if (b >= a && b >= c)

        printf("Largest: %d\n", b);

    else

        printf("Largest: %d\n", c);

    return 0;

}


No comments:

Post a Comment

Featured Post

Data Analysis

    What is data analysis and its significance?   Data analysis is the process of collecting, transforming, and organizing data to dr...

Popular Posts