Ask coding questions

← Back to all posts
Como limpar a tela do programa em C no repl it? (How to clear the screen in system C repl it ? )
MuriloGabriel (3)

//Português (Portuguese BR)
Como limpar a tela do programa em C no repl it?
Eu usei o system("CLS"); mas não funcionou.
Queria saber como faz para resolver isso.

//Inglês (English)
How to clean C program screen in repl it?
I used the system ("CLS"); but it did not work.
I wonder how you do it to solve this.

Comments
hotnewtop
SixBeeps (5226)

repl.it runs on Linux, so try system("clear") instead.

MuriloGabriel (3)

@niorg2606 I don't have linux in my computer, is windows 10

Zavexeon (1162)

@MuriloGabriel Yes, but the repl.it server are running linux. Repl.it is actually running the code and sending back the results to your computer.

MuriloGabriel (3)

@Zavexeon ok, but, do u know any code that I can use for my program?
If so, could u give that? pls

Zavexeon (1162)

@MuriloGabriel If it's in replit, the above code that he gave should work fine.

Douglascabral18 (0)

how can I do that on Windows 10 ?