Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

System PAUSE and CLS

–1 vote
asked Aug 1, 2020 by FX Airell Valerio SW (110 points)
How can we use system("pause") and system("cls") in here?

1 Answer

–1 vote
answered Aug 5, 2020 by Peter Minarik (22,620 points)
Both pause and cls are Windows commands.

OnlineGDB is running on a linux machine, hence the Windows commands do not work there.

"clear" is the equivalent in linux of "cls" in Windows, however, it does not work in here. It works in your own PC though if you're running linux.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.