Computer Code Reference Page

Code Examples Keyboard Input Examples Variable in Maths System Messages

In HTML, we can represent programming code, variables, keyboard input, and system responses using special tags


Code Examples

            
            
            
                

Hello World

            
                console.log("Hello World");
            
        
            
                #Include <stdio.h>
                int main() {
                    printf("Hello World");
                    return 0;
                }
            
    

Keyboard Input Examples

Copy = Ctrl + C
Paste = Ctrl + V
Save = Ctrl + S

Variable in Maths

Area of a circle is A = πr2, where A is the area and r is the radius.

The formula for Pythagoras' theorem is a2 + b2 = c2, where a and b are the lengths of the two shorter sides of a right triangle, and c is the length of the hypotenuse.

System Messages

The system Messages is: Hello World

top