#include <stdlib.h>
#include <stdio.h>
int main()
{
int i,j;
char elenco[30];
while(elenco[i]!='s' || i<=20)
{
printf("indique um menbro do elenco ,se quiser sair escreva apenas a letra S");gets(elenco);
i++;
}
for(j=1;j<=i;j++)
{
printf("Elenco.:%-30s\n",elenco[j]);
}
}
I want the while
cycle to continue until the S
character is entered or until it is entered 20 times