#include #include int main () { int i; printf("#include \n"); printf("int main() {\n"); printf("\t int findthis;\n"); for (i =1; i < 1001; i++) printf("\t int x%d = %d;\n", i,(int) random()); printf("printf(\"Enter the potential bad guy id >\");\n"); printf("scanf(\"%%d\", &findthis);\n"); printf("if (x1 == findthis)\n"); printf("\tprintf(\"Yes, this is bad guy 1\");\n"); for (i = 2; i < 1001; i++) { printf("else if (x%d == findthis)\n", i); printf("\tprintf(\"Yes, this is bad guy %d\");\n", i); } printf("else printf(\"OK, this guy is not a bad guy\");\n"); printf("return 0;"); printf("}\n"); }