View Code of Problem 68

#include<stdio.h>
#include<math.h>
int main()
{
	int a[3],max,i;
	scanf("%d %d %d",&a[0],&a[1],&a[2]);
	max=a[0];
	for(i=1;i<3;i++)
	{
		max=(max>a[i])?max:a[i];
	}
	printf("%d",max);
	return 0;
}

Double click to view unformatted code.


Back to problem 68