#include<stdio.h> #include<math.h> #include<string.h> int main() { int k; int i; while (scanf("%d", &k) != EOF) { if (k < 1) break; else { i = 23 + 3 * 5 * 7*(k - 1); printf("%d\n", i); } } return 0; } |
Double click to view unformatted code.