Jump to content
Fórum Script Brasil
  • 0

Entrada Matriz



Estou com problema em uma entrada de dados na matriz, só entram a metade dos dados.

N e M representam o número de linhas e colunas, meu código está assim:

#include <stdio.h>

int main(){
    int N, M, i, j;
    char l[1000][1000];

    scanf("%d", &N);
    scanf("%d", &M);

    for (i=0;i<N;i++){
        for (j=0;j<M;j++){

Por exemplo, onde deve entrar 10 valores, só entram 5. Por favor me ajudem

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...