View Code of Problem 87

#include <stdio.h>

int main()
{
int nCases, i, nFeet;
scanf("%d",&nCases);
while(nCases--)
{
scanf("%d",&nFeet);
if(nFeet % 2!= 0)
printf("00\n");
else if(nFeet % 4 != 0)

printf("%d %d\n",nFeet/4 +1, nFeet/2);
else
printf("%d %d\n",nFeet/4, nFeet/2);
}
return 0;
}

Double click to view unformatted code.


Back to problem 87