-2
I’d like to turn that into code C I’ve done everything I’m only having the problem in part "If MEDIA >=6
And FALTAS <=10
So" mostly on the part of And I don’t know how I’m gonna 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
If using && should work. if (MEDIA >= 6 && MISSING <= 10) {...
– GarouDan
I seem to be missing some research work...
– CesarMiguel
It would be better to change the form of your question. Someone who wanted to reference himself in the future will not understand what it is. You need to formulate a well-defined question.
– GarouDan
Matheus, concerning the rollback from @Ciganomorrisonmendez: we can not convert our question into a totally different one. Once explained the problem and obtained at least one response, We should not change the essence of the question because it invalidates the answers given. We should open a new question and link to the original explaining the new situation.
– brasofilo
Or, in this case, edit the question and add more content.
– Leonel Sanches da Silva