include[HTML_REMOVED]
using namespace std;
int main()
{
double a,b,c,d,y,x,z;
scanf(“%lf%lf%lf%lf”,&a,&b,&c,&d);
x=(a2+b3+c4+d)/10;
printf(“Media: %.1f\n”,x);
if(x>=7.0)
printf(“Aluno aprovado.”);
else if(x<5.0)
printf(“Aluno reprovado.”);
else
{
printf(“Aluno em exame.\n”);
scanf(“%lf”,&y);
printf(“Nota do exame: %.1f\n”,y);
z=(x+y)0.5;
if(z>=5.0)
printf(“Aluno aprovado.\n”);
else
printf(“Aluno reprovado.\n”);
printf(“Media final: %.1f”,z);
}
}