How to write a C Program to Read 10 real numbers using a vector and show the least of them C Programming Language ?
Solution:
main(){ float vet[10],menor=0; int c; printf("\ndigite 10 numeros"); for(c=0;c<10;c++) scanf("%f",&vet[c]); for(c=0;c<10;c++) if(menor > vet[c] && menor!= 0 ) menor=vet[c]; printf("\n%f",menor); }