You can use clrscr() of conio.h