i am a C newbie attempting to clear the screen in a program. When I wrote a quick test program,
it compiled perfectly, but when I ran it gave the error message "sh: clear: command not found". I also tried the same but replacing "clear" with "cls", but received a similar error message. Can anyone help with this?Code:
#include <stdio.h>
#include <stdlib.h>
main()
{
system("clear");
}

