skip to Main Content

You can add code snippets for any language you want in one click using “code insert” feature.

Example code samples

PHP
<?php
  
$a = 10;
$b = 20;
$c = $a + $b;

echo "Sum: ", $c;

?>
 Javascript
<script>
function add(){
var a,b,c;
a=Number(document.getElementById("first").value);
b=Number(document.getElementById("second").value);
c= a + b;
document.getElementById("answer").value= c;
}
</script>
C#
int x = 5;
int y = 6;
int sum = x + y;
Console.WriteLine(sum); // Print the sum of x + y

 

Back To Top