thomas_naveen 105 Junior Poster
thomas_naveen 105 Junior Poster

You might want to consider changing

c= n

and

r= m

with

c== n

and

r== m
thomas_naveen 105 Junior Poster

Have you tried using sprintf to print the hex formatted numbers onto a string.