View Code of Problem 31

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

	return 0;
}

Double click to view unformatted code.


Back to problem 31