Skip to content

Instantly share code, notes, and snippets.

@jhserodio
Created July 19, 2018 16:20
Show Gist options
  • Save jhserodio/77fe14c7cce1a6f6d49fc6161e394039 to your computer and use it in GitHub Desktop.
Save jhserodio/77fe14c7cce1a6f6d49fc6161e394039 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void)
{
int i;
int j;
int first[6][6] = {
{1,1,1,0,0,0},
{0,1,0,0,0,0},
{1,1,1,0,0,0},
{0,0,0,2,0,1},
{0,0,0,0,2,0},
{0,0,0,2,3,9}
};
int len = sizeof(first)/sizeof(first[0]);
for( i = 0; i < 6; i++ )
{
for( j = 0; j < sizeof(first); j++)
{
printf("aqui vai cada celula: [%d] \n", first[i][j]);
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment