Hi,
> Below code will print Hey until I don't press 'a' I want a code which can also erase the statement on screen
with explanation if possible
Can you clarify what you mean?
that code is given by you as you know that i used user defined function which will contonuosly print 'hey' repeat until i don't press 'a' and it will print 'bye'
but i want a code when i press 'a' it erase the 'hey'