How do we erase?
Python (only repl.it):
import replit print("Hello World") replit.clear()
C/C++ (Linux)
#include <ncurses.h> int main(){ WINDOW * wnd = initscr(); printw("Hello World"); refresh(); clear(); }
General solution (the crappy way, pseudocode):
var i = 0; while i < 1000 : inc i; print('\n');
What language?
Python (only repl.it):
C/C++ (Linux)
General solution (the crappy way, pseudocode):