#include <stdio.h>
#include <stdlib.h>
// Cross-platform C code to clear the console
void clearConsole() {
#ifdef _WIN32
system("cls"); // Windows
#else
system("clear"); // Linux / macOS / Unix
#endif
}
int main() {
printf("Have a nice day\n");
clearConsole();
printf("Screen cleared!\n");
return 0;
}
/*
run:
*/