-1
Hello, I made this program to show the average between 2 numbers and show if the student was approved or not, however the result is not working.
#include <stdio.h>
int main(void) {
  float primeiraNota, segundaNota, media;
     printf("Digite a primeira nota: ");
       scanf("%f", & primeiraNota);
     printf("Digite a segunda nota: ");
       scanf("%f", & segundaNota);
    media = (primeiraNota + segundaNota)/ 2;
    if (media > 6)
      printf(" O aluno esta aprovado com a media = %f", &media);
      else
        printf(" O aluno esta reprovado com a media = %f", &media);
  return 0;
}
						
It worked, thank you very much!
– Luis Artur