#include <stdio.h>
int main( ) {
int auxa = 0 , auxr = 0 , notas = 0 , cont = 0 ;
while ( cont < 10 ) {
printf ( "digite o resultado: " ) ; if ( notas == 1 )
auxa++;
if ( notas == 2 )
auxr++;
if ( notas != 1 && notas != 2 )
continue ;
cont++;
}
printf ( "aprovados:%i\n " , auxa
) ; printf ( "reprovados:%i\n " , auxr
) ; if ( auxa >= 8 )
printf ( "bonus ao instrutor\n " ) ; if ( auxr >= 7 )
printf ( "algo esta errado com o instrutor\n " ) ; }
//http://pt.stackoverflow.com/q/22562/101
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgewogICAgaW50IGF1eGEgPSAwLCBhdXhyID0gMCwgbm90YXMgPSAwLCBjb250ID0gMDsKICAgIHdoaWxlIChjb250IDwgMTApIHsKICAgICAgICBwcmludGYoImRpZ2l0ZSBvIHJlc3VsdGFkbzogIik7CiAgICAgICAgc2NhbmYoIiVpIiwgJm5vdGFzKTsKICAgICAgICBpZiAobm90YXMgPT0gMSkKICAgICAgICAgICAgYXV4YSsrOwogICAgICAgIGlmIChub3RhcyA9PSAyKQogICAgICAgICAgICBhdXhyKys7CiAgICAgICAgaWYgKG5vdGFzICE9IDEgJiYgbm90YXMgIT0gMikKICAgICAgICAgICAgY29udGludWU7CiAgICAgICAgY29udCsrOwogICAgfQogICAgcHJpbnRmKCJhcHJvdmFkb3M6JWlcbiIsIGF1eGEpOwogICAgcHJpbnRmKCJyZXByb3ZhZG9zOiVpXG4iLCBhdXhyKTsKICAgIGlmIChhdXhhID49IDgpCiAgICAgICAgcHJpbnRmKCJib251cyBhbyBpbnN0cnV0b3JcbiIpOwogICAgaWYgKGF1eHIgPj0gNykKICAgICAgICBwcmludGYoImFsZ28gZXN0YSBlcnJhZG8gY29tIG8gaW5zdHJ1dG9yXG4iKTsKfQoKLy9odHRwOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yMjU2Mi8xMDE=