#include <stdio.h>
#include <stdlib.h>
int main() {
int parar=1; // Condição para parar.
int a=0, b=0, c=0; //Elevadores
int count=0; //Numero de pessoas
char elevador=' '; //Elevador
do {
if (elevador == 'a') {
a++;
count++;
} else if (elevador == 'b') {
b++;
count++;
} else if (elevador == 'c') {
c++;
count++;
} else {
}
printf("\nContinuar respondendo? s=1 n=0"); } while (parar != 0);
}
//https://pt.stackoverflow.com/q/212422/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCkgewoJaW50IHBhcmFyPTE7IC8vIENvbmRpw6fDo28gcGFyYSBwYXJhci4KCWludCBhPTAsIGI9MCwgYz0wOyAvL0VsZXZhZG9yZXMKCWludCBjb3VudD0wOyAvL051bWVybyBkZSBwZXNzb2FzCgljaGFyIGVsZXZhZG9yPScgJzsgLy9FbGV2YWRvcgoJZG8gewoJICAgIHByaW50ZigiRWxldmFkb3I6ICIpOwoJICAgIHNjYW5mKCIlYyIsICZlbGV2YWRvcik7CgkgICAgaWYgKGVsZXZhZG9yID09ICdhJykgewoJICAgICAgICBhKys7CgkgICAgICAgIGNvdW50Kys7CgkgICAgfSBlbHNlIGlmIChlbGV2YWRvciA9PSAnYicpIHsKCSAgICAgICAgYisrOwoJICAgICAgICBjb3VudCsrOwoJICAgIH0gZWxzZSBpZiAoZWxldmFkb3IgPT0gJ2MnKSB7CgkgICAgICAgYysrOwoJICAgICAgIGNvdW50Kys7CgkgICAgfSBlbHNlIHsKCSAgICAgICAgcHJpbnRmKCJpbnbDoWxpZG8hIik7CgkgICAgfQogICAgICAgIHByaW50ZigiXG5Db250aW51YXIgcmVzcG9uZGVuZG8/IHM9MSBuPTAiKTsKICAgICAgICBzY2FuZigiJWQiLCAmcGFyYXIpOwogICAgfSB3aGlsZSAocGFyYXIgIT0gMCk7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzIxMjQyMi8xMDE=