#include <stdio.h>
#include <stdlib.h>
int main()
{
int i, notas[5];
int soma = 0;
for(i=0; i<3; i++) {
printf("Digite os tres numeros:\n");
scanf("%d", ¬as[i]);
}
for(i=0; i<3; i++) {
soma = soma + notas[i];
soma = notas[1] + notas [2] + notas[3];
printf("Valor: %d\n", soma);
}
return 0;
}
I do not know why it does not work, I wanted to read three numbers and display, plus the sum, but it does not work, returns the size of the "sum" variable.