#include <stdio.h>
int main() {
float p1, p2, media = 0;
printf("Digite suas duas notas:\n");
scanf("%f", &p1);
scanf("%f", &p2);
media = (p1 + p2) / 2.0;
printf("Sua média é %.2f\n\n", media);
if (media >= 6.0) {
printf("Você está aprovado.\n");
} else {
printf("Você não está aprovado.\n");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: