#include <stdio.h>
int menor( int vec[], int tam )
{
if( tam == 1 )
return vec[0];
int m = menor( vec + 1, tam - 1 );
return ( vec[0] < m ) ? vec[0] : m;
}
int main( void )
{
int vetor[]= {8,3,5,7,11,13,17,4,8,10};
int tam = sizeof(vetor) / sizeof(int);
int min = menor( vetor, tam );
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWVub3IoIGludCB2ZWNbXSwgaW50IHRhbSApCnsKICAgIGlmKCB0YW0gPT0gMSApCiAgICAgICAgcmV0dXJuIHZlY1swXTsKCiAgICBpbnQgbSA9IG1lbm9yKCB2ZWMgKyAxLCB0YW0gLSAxICk7CgogICAgcmV0dXJuICggdmVjWzBdIDwgbSApID8gdmVjWzBdIDogbTsKfQoKaW50IG1haW4oIHZvaWQgKQp7CglpbnQgdmV0b3JbXT0gezgsMyw1LDcsMTEsMTMsMTcsNCw4LDEwfTsKCWludCB0YW0gPSBzaXplb2YodmV0b3IpIC8gc2l6ZW9mKGludCk7CgoJaW50IG1pbiA9IG1lbm9yKCB2ZXRvciwgdGFtICk7CgoJcHJpbnRmKCAiJWRcbiIsIG1pbiApOwoKCXJldHVybiAwOwp9