View Code of Problem 68

#include<stdio.h>
#include<string.h>
void swap(int *a,int *b){
	int temp;
	temp = *a;
	*a = *b;
	*b = temp;
}
int main(){
	char a[100],c;
	int i,len=0,k,j=1,s[100],f1,f2,s1,s2,m1,m2,x,y;
	scanf("%d%d%d",&x,&y,&k);
	if(x<y)swap(&x,&y);
	if(x<k)swap(&x,&k);
	printf("%d",x);
	return 0;
}

Double click to view unformatted code.


Back to problem 68