I would like to turn this into C code I have already done everything I just have the problem in the part "If MEDIA >=6
and FALTAS <=10
Then" mainly in the part of And I do not know how I will separate the account.
Programa CalculoMedia2
Var
N1, N2, MEDIA: Real
FALTAS: Inteiro
Início
Leia N1
Leia N2
Leia Faltas
MEDIA ← (N1+N2)/2
Se MEDIA >=6 E FALTAS <=10 Então
Escreva “Aluno aprovado com média: ”, MEDIA
Senão
Escreva “Aluno reprovado com média: ”, MEDIA
Fim Se
Fim