View Code of Problem 31

#include <stdio.h>
#include <string.h>
#include <math.h>
int main()
{
	long long int n;
	while (scanf("%lld", &n) != EOF)
	{
		long long int s = (n * 5 - 4) * 21 + 2;
		printf("%lld\n", s);
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 31