cls (Windows) or clear (Linux) console application can be used to clear the screen.
In C, you only need to use the system function to call the corresponding command
/* Example:clear screen using C language */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char const *argv[]) { system("cls"); //Windows system("clear"); //Linux return 0; }