#include <stdio.h>
int main() {
float nota1, nota2, media;
printf("Digite a primeira nota: ");
scanf("%f", ¬a1);
printf("Digite a segunda nota: ");
scanf("%f", ¬a2);
media = (nota1 + nota2) / 2;
printf("Media: %.1f\n", media);
if (media <6) {
printf("Reprovado!\n");
} else {
printf("Aprovado!\n");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: