TOPIC

20% Wrong por que?

Eymi Priscila Berrios Montúfar asked 1 year ago

include

int main(){ int x,n; scanf("%d",&n); if(n%2==0){ for(x=n+1;x<=n+13;x++) printf("%d\n",x++); } if(n%2!=0){ for(x=n;x<=n+10;x++) printf("%d\n", x++); } return 0; }

Remember not post solutions. Your post may be reviewed by our moderators.

  • Tupy replied 1 month ago

    Tenta com

    for(x = n + 1; x <= n + 11; x++)
    , no primeiro for. Acredito que fazendo isso fica correto...