0
how can i finde L in this table?
at first i want to get two numbers from keyboard for array length and width then get a table from star and dot from keyboard and then...i want to find the number of L simbols in a table(array) of star and dot characters like this:(an 4*5 array for example) *.... *.... *.... **... The number of stars in vertical planes should be twice the number of stars in horizontal planes for example if we have a image like this : *..* *.*. *... **.. *... *** the answer must be :2. first( the L in index (0,0),(1,0),(2,0),(3,0),(3,1)) and the second one in( (0,0),(1,0),(2,0),(3,0),(4,0),(5,0),(5,1),(5,2): how can i do this
2 Respostas
0
please help me if you can
0
Try to the same way, as you described.. Follow your algorithm.. Take array with some random initialization with * and dot. Then by loops, traverse colomn until you find a dot, if you find then traverse row from that. If you gone trough a colomn and row then print all traversed. Otherwise go next colomn.. Give a try.. And post your try.. Then some one help you to solve it.