TOPIC

Programa correto com casos udebug dando erro

Gustavo Henrique Schneider asked 7 months ago

include include

int main(){

int n,k,i,j;

int numero[100][50]={};

scanf("%d",&n); while(n<=1 || n>=100) scanf("%d",&n);

for(i=0;i<n;i++)
{   
    scanf("%d",&k);
        while(k<=1 || k>=50)
        scanf("%d",&k);
    for(j=0;j<k;j++)
    {
        scanf("%d",&numero[i][j]);  
            while(numero[i][j]<1 || numero[i][j]>4)
            scanf("%d",&numero[i][j]);
    }
}

for(i=0;i<100;i++)
{
    for(j=0;j<50;j++)
    {
        if(numero[i][j]==1) 
            printf("Rolien\n");
        else if(numero[i][j]==2)    
            printf("Naej\n");
        else if(numero[i][j]==3)    
            printf("Elehcim\n");
        else if(numero[i][j]==4)
            printf("Odranoel\n");
    }
}
return 0;

}

This topic was solved and cannot recieve new replies.