View Code of Problem 31

#include<iostream>
using namespace std;
int main()
{
    long long k;
    while( cin>>k )
    {
        if( k<1 )break;
        cout<<(5*k-4)*21+2<<endl;
    }
}

Double click to view unformatted code.


Back to problem 31