Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

108
Vistas
How to treat <stdio.h> as a simple text and not as a html tag

I have to make html website in which I have to put all the C /C++ /Java Codes But when I put C code in html tag , the C librabry <stdio.h> itself treated as a html tag due to angular brackets. What should I do to treat <stdio.h> as a simple text and not as a html tag ?

 <!DOCTYPE html>
    <html lang="en">
        <meta charset="UTF-8">
        <head>
            <title>
                codes
            </title>
            <script src="" ,type="text/javascript">
                
            </script>
        </head>
        <body>
            <pre id="sumof2num">
                <code>
                #include<stdio.h>
                    
                    int main()  
                    { 
                        int a; 
                        int b; //declaring vars
                        int sum=0; //initializing vars
                        printf("Enter Two Numbers: \n");
                        scanf("%d%d",&a,&b);
                        sum=a+b;
                        printf("Sum is %d",sum);                    
                        return 0;
                    }
                </code>
                </pre> 
        </body>
    </html>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

if you mean you want to display <> symbols in code then try < and >. While rendering as HTML it will be converted into <> symbols.

<html lang="en">
    <meta charset="UTF-8">
    <head>
        <title>
            codes
        </title>
        <script src="" ,type="text/javascript">
            
        </script>
    </head>
    <body>
        <pre id="sumof2num">
            <code>
            #include &lt;stdio.h&gt;
                
                int main()  
                { 
                    int a; 
                    int b; //declaring vars
                    int sum=0; //initializing vars
                    printf("Enter Two Numbers: \n");
                    scanf("%d%d",&a,&b);
                    sum=a+b;
                    printf("Sum is %d",sum);                    
                    return 0;
                }
            </code>
            </pre> 
    </body>
</html>
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda