View Code of Problem 31

#include <stdio.h>
using namespace std;
int main(){
	
    long long int n,k;
	while(~scanf("%lld", &k ) ){
		n = 23+(k-1)*(3*5*7);
		printf("%lld\n", n );
	}
	
	return 0;
	
}

Double click to view unformatted code.


Back to problem 31