#include< stdio.h> #include< stdlib.h> int main() { int min,position, length=10; int tab[10]={1,2,3,4,5,6,7,8,9,10}; min=999999; for (int i=0; i< length; i++) { if(tab[i]< min){ min=tab[i]; position=i; } } printf("Minimum : %d\nPosition: %d\n",min,position); return 0; } |
Please disable your ad blocker and refresh the window to use this website.