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