View Code of Problem 31

#include<iostream>
using namespace std;

int main(){
	int k, s;
	while(cin >> k){
		s = 23 + (k-1)*3*5*7;
		cout << s << endl;
	}
}

Double click to view unformatted code.


Back to problem 31