View Code of Problem 87

#include<stdio.h>
#include<math.h>
int main()
{
	int foot;
	scanf("%d",&foot);
	int min,max;
	if(foot%2!=0)
	  printf("0 0");
	else
	{
		if(foot%4==0)
		 min=foot/4;
		else
		 min=foot/4+1;
		max=foot/2;
		printf("%d %d",min,max);
	} 

} 

Double click to view unformatted code.


Back to problem 87