how to use c language to clear screen

https‮‬://www.lautturi.com
how to use c language to clear screen

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;
}
Created Time:2017-08-28 14:47:28  Author:lautturi