View Code of Problem 31

#include <stdio.h>
#include <math.h>
int main()
{
	long int k,n;
	
	while(scanf("%d",&k) != EOF)
	{
		if(k < 1)
			break;
		else
		{
			n = 23 + 105*(k-1);
			printf("%ld\n",n);
		}
	}
	
	return 0;	
}

Double click to view unformatted code.


Back to problem 31