Find Odd & Even number - pseudocode

 Machine language = instructions set + rules about how the instruction can be compailed 


A program called an assembler translates assembly language into machine language. A translator analyses the program (source code) and writes an equivalent machine language program. Two type of translators- Compiles and interpreters.

3 type of errors :

Syntax errors

Logical errors

Run time errors


Find Odd & Even number - pseudocode

BEGIN

    INT A,B

    GET A

    B = A % 2

    IF B==0 THEN

        DISPLAY  "Event number"

    ELSE

        DISPLAY "Odd number"

    ENDIF

END

Comments

Popular posts from this blog

Sri Lankan IT industry & companies