what problem u have..................

i have done it by some other way...................

search for TIC TAC TO.CPP