View Code of Problem 68

#include<stdio.h>
int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	if(a>b)
	{
		if(a>c)
		printf("%d",a);
		else
		printf("%d",c);
	}
	else if(b>c)
	{
		if(b>a)
		printf("%d",b);
		else
		printf("%d",a);
	}
	else if(c>a)
	{
		if(c>b)
		printf("%d",c);
		else
		printf("%d",b);
	}
	return 0;
 } 

Double click to view unformatted code.


Back to problem 68