#include<stdio.h> int main(){ int k; while(scanf("%d",&k)!=EOF%%k!=0){ printf("%ld\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){ ^ Main.c:5:13: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] printf("%ld\n",23+(k-1)*3*5*7); ~~^ ~~~~~~~~~~~~~~ %d */ |
Double click to view unformatted code.