View Code of Problem 18

#include "stdio.h"
int main(int argc, char const *argv[])
{
	int n,i;
	while (scanf("%d",&n)!=EOF)
	{
		if (n>=1)
		{
			i=n/2;
			printf("%d\n",i );
		}
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 18