Code tag removing code in <>

its ignoring #include <iostream>

<pre>

            <code>

            #include <iostream>

            using namespace std;

            // main() is where program execution begins.

            int main() {

                cout << "Hello World"; // prints Hello World

                return 0;

            }

        </code>

    </pre>

you can’t use angular brackets, you need to use the symbol so that they are not interpreted as code
you can find a whole list of html entities in this article:

2 Likes