View Code of Problem 31

#include<iostream>
using namespace std;
int main() {
    long long k;
    while (cin >> k) {
        long long sum = 23 + (k - 1) * 3 * 5 * 7;
        cout << sum << endl;
    }
	return 0;
}

Double click to view unformatted code.


Back to problem 31