View Code of Problem 31

#include<stdio.h>
int main(){
	int k;	
	while(scanf("%d",&k)!=EOF){
		long int sum;
        sum=23+(k-1)*3*5*7;
		printf("%ld\n",sum);
	}
	return 0;
}	

Double click to view unformatted code.


Back to problem 31