valor_maior == a; // vm = 11
if (valor_maior < b) //true
valor_maior = b; //vm = 12
else //else?!
if (valor_maior < c) //skipped due to else
valor_maior = c; //skipped due to if skipped by else
- compile with warnings
- read the warnings
- ¿?
- profit
in valor_maior() you have valor_maior == a;
== is comparison, not assignment
in valor_menor() you never check `a'
limit your functions to do one thing, right now you are processing user input (duplicate code), finding the max/min and printing the result all in one function.
leave i/o to main() and learn to use the parameters and return value of the functions.