Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!