#include <stdio.h>#define SIZE 10
int main(void){ int key, i; int list[SIZE] = { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
printf("[ "); for (i = 0; i < SIZE; i++) { printf("%d ", list[i]); } printf("]\n");
printf("Ž»öÇÒ °ªÀ» ÀÔ·ÂÇϽÿÀ:"); scanf("%d", &key);
for (i = 0; i < SIZE; i++) { if (list[i] == key) { printf("Ž»ö ¼º°ø À妽º= %d\n", i); break; } else printf("Ž»ö½ÇÆÐ"); break; }
return 0;}