View Code of Problem 31

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

















/*
Main.c: In function 'main':
Main.c:4:28: error: expected expression before '%' token
  while(scanf("%d",&k)!=EOF%%k!=0){
                            ^
*/

Double click to view unformatted code.


Back to problem 31