View Code of Problem 31

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

Double click to view unformatted code.


Back to problem 31