View Code of Problem 18

#include  <stdio.h>
#include  <stdlib.h>
#include  <math.h>
#include  <string.h>


int main()
{
	int n;
	while (scanf("%d",&n)!=EOF) 
	{
		if(n>2)
		{
			printf("%d\n",n/2);
		}		
	}


	return 0;	
}

Double click to view unformatted code.


Back to problem 18