View Code of Problem 68

#include<stdio.h>
int main(){
    int a,b,c,max;
    scanf("%d%d%d",&a,&b,&c);
    //printf("%d",a>b?(a>c?a:c):(b>c?b:c));
    if(a>b)
        {
        if(a>c)max=a;
        else max=c;
        }

    else
    {
        if(b>c)max=b;
        else max=c;
    }
    printf("%d",max);
return 0;
}

Double click to view unformatted code.


Back to problem 68