Not reading 2 digit numbers

This code is working fine for single digit elements of the matrix but is not reading numbers with more than one digit. https://ide.codingblocks.com/s/136878 This is my code.

@shruthi019 hey shruthi take int array instead of char array

1 Like

Thanks! Is there a way to store words in a matrix?

@shruthi019 hey shruthi you can use 2d char array

I mean in matrix form like for example:
2x2 matrix:
cat dog
cow goat

@shruthi019 hey shruthi in this case you can use 2d string array

1 Like