make it simpliest

Posted by gcc on Stack Overflow See other posts from Stack Overflow or by gcc
Published on 2010-04-18T19:48:10Z Indexed on 2010/04/18 19:53 UTC
Read the original article Hit count: 102

Filed under:

input

000 000 000 000
255 000 000 000          
000 000 000 000

purpose instead of 000 write 0 and 255 write 2

take input 
{
   char A[800][600];
   scanf("%d",&height);
 for(i=0;i<height;++i)
    scanf("%s",A[i]);

 then

   what

output

0 0 0 0
2 0 0 0    
0 0 0 0

© Stack Overflow or respective owner

Related posts about c