Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int media(int total)
- {
- int valor, resultado, valoressoma;
- total = 0;
- valoressoma = 0;
- resultado = 0;
- do
- {
- printf("Digite um numero: ");
- scanf("%d", &valor);
- total++;
- valoressoma = valoressoma + valor;
- resultado = valoressoma/total;
- } while(2==2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement