Call the system command using the "system" function :
Cls - Clear the screen. windows
Clear - Clears the screen. linux
/*
Example: clear screen in C language
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <stdbool.h>
int main(int argc, char *argv[]) {
system("clear"); //Linux / Unix
system("cls"); //windows
return 0;
}