View Code of Problem 31

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

Double click to view unformatted code.


Back to problem 31