View Code of Problem 31

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

Double click to view unformatted code.


Back to problem 31