system function in c to clear screen code example
Example 1: clear screen c
#include <stdlib.h>
//...
system("clear"); //*nix
system("cls"); //windows
Example 2: clear screen in c
system("cls");
#include <stdlib.h>
//...
system("clear"); //*nix
system("cls"); //windows
system("cls");