#include <stdio.h>
int main( ) {
char nome[ 30 ] ;
int f = 0 ;
printf ( "Digite o nome do aluno: " ) ; printf ( "\n Digite o numero de faltas do aluno: " ) ; if ( f > 15 ) {
printf ( "\n Aluno reprovado por falta." ) ; } else {
float n1, n2, n3;
printf ( "\n Digite a primeira nota do aluno: " ) ; printf ( "\n Digite a segunda nota do aluno: " ) ; printf ( "\n Digite a terceira nota do aluno: " ) ; float mf = ( n1 + n2 + n3) / 3 ;
if ( mf >= 7 ) {
} else {
printf ( "\n Aluno reprovado por media." ) ; }
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgeyAgICAKCWNoYXIgbm9tZVszMF07CglpbnQgZiA9IDA7CglwcmludGYoIkRpZ2l0ZSBvIG5vbWUgZG8gYWx1bm86ICIpOwoJc2NhbmYoIiVzIiwgbm9tZSk7CglwcmludGYoIlxuRGlnaXRlIG8gbnVtZXJvIGRlIGZhbHRhcyBkbyBhbHVubzogIik7CglzY2FuZigiJWQiLCAmZik7CglpZiAoZiA+IDE1KSB7CgkgICAgcHJpbnRmKCJcbkFsdW5vIHJlcHJvdmFkbyBwb3IgZmFsdGEuIik7Cgl9IGVsc2UgewoJICAgIGZsb2F0IG4xLCBuMiwgbjM7CgkgICAgcHJpbnRmKCJcbkRpZ2l0ZSBhIHByaW1laXJhIG5vdGEgZG8gYWx1bm86ICIpOwoJICAgIHNjYW5mKCIlZiIsICZuMSk7CgkgICAgcHJpbnRmKCJcbkRpZ2l0ZSBhIHNlZ3VuZGEgbm90YSBkbyBhbHVubzogIik7CgkgICAgc2NhbmYoIiVmIiwgJm4yKTsKCSAgICBwcmludGYoIlxuRGlnaXRlIGEgdGVyY2VpcmEgbm90YSBkbyBhbHVubzogIik7CgkgICAgc2NhbmYoIiVmIiwgJm4zKTsKCSAgICBmbG9hdCBtZiA9IChuMSArIG4yICsgbjMpIC8gMzsKCSAgICBpZiAobWYgPj0gNykgewoJICAgICAgICBwcmludGYoIlxuQWx1bm8gYXByb3ZhZG8hIik7CgkgICAgfSBlbHNlIHsKCSAgICAgICAgcHJpbnRmKCJcbkFsdW5vIHJlcHJvdmFkbyBwb3IgbWVkaWEuIik7CgkgICAgfQoJfQp9