View Code of Problem 68

#include<stdio.h>
#include<string.h>

int getMax(int a, int b)
{
    int z;
    z = a>b? a:b;
    return z;
}

void main()
{
    int a, b, c;
    int x,y;
    scanf("%d %d %d", &a, &b, &c);
    x = getMax(a, b);
    y = getMax(b, c);
    printf("%d", getMax(x,y));
}

Double click to view unformatted code.


Back to problem 68