#include< stdio.h> #include< stdlib.h입니다> int main() { int min, position, 길이=10; int tab[10]={1,2,3,4,5,6,7,8,9,10}; min=999999스팬>; for (int i=0스팬>; 나는< 길이; i++) { if(탭[i]< min){ 최소 = 탭 [i]; position=i; } } printf("최소 : %d\n위치: %d\n",min,position); 반환 0; } |
Please disable your ad blocker and refresh the window to use this website.