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>