View Code of Problem 31

#include<stdio.h>
void main()
{
	long int k;
	while(scanf("%ld",&k)!=EOF&&k>=1)
	{
		long int sum;
		sum=23+3*5*7*(k-1);
		printf("%ld\n",sum);
	}
}

Double click to view unformatted code.


Back to problem 31