#include <stdio.h>
int main( ) {
char elenco[ 20 ] [ 30 ] ;
int cont = 0 ;
for ( int i = 0 ; i < 20 ; i++, cont++ ) {
printf ( "\n indique um menbro do elenco ,se quiser sair escreva apenas a letra S" ) ; scanf ( "%29s" , & elenco
[ i
] [ 0 ] ) ; if ( elenco[ i] [ 0 ] == 'S' && elenco[ i] [ 1 ] == '\0 ' ) break ;
}
for ( int i
= 0 ; i
< cont
; i
++ ) printf ( "\n Elenco: %s" , elenco
[ i
] ) ; }
//https://pt.stackoverflow.com/q/262834/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKCWNoYXIgZWxlbmNvWzIwXVszMF07CglpbnQgY29udCA9IDA7Cglmb3IgKGludCBpID0gMDsgaSA8IDIwOyBpKyssIGNvbnQrKykgewoJICAgIHByaW50ZigiXG5pbmRpcXVlIHVtIG1lbmJybyBkbyBlbGVuY28gLHNlIHF1aXNlciBzYWlyIGVzY3JldmEgYXBlbmFzIGEgbGV0cmEgUyIpOwoJICAgIHNjYW5mKCIlMjlzIiwgJmVsZW5jb1tpXVswXSk7CgkgICAgaWYgIChlbGVuY29baV1bMF0gPT0gJ1MnICYmIGVsZW5jb1tpXVsxXSA9PSAnXDAnKSBicmVhazsKCX0KCWZvciAoaW50IGkgPSAwOyBpIDwgY29udDsgaSsrKSBwcmludGYoIlxuRWxlbmNvOiAlcyIsIGVsZW5jb1tpXSk7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzI2MjgzNC8xMDE=