View Code of Problem 31

#include <stdio.h>
#include <stdlib.h>
#include<ctype.h>
#include<string.h>
#include<math.h>

int main()
{
	int k, n, i;
	while (scanf("%d", &n) != EOF&&n>0)
	{
		
		i = 23 + 3 * 5 * 7 * (n - 1);
		printf("%d\n", i);
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 31