Clear Screen without clrscr() function call

#include<stdio.h>
void clearmyscreen();
void main()
 {
  printf("Hello");
  getch();
  clearmyscreen();
  printf("World");
  getch();
 }

void clearmyscreen()
 {
  system("cls");
 }

Leave a Reply

Your email address will not be published. Required fields are marked *