This page contains webassembly and javascript content, please enable javascript in your browser.
Psuedocode Interpreter
Found a mistake or problem?
Report it here!
←
≠
≥
≤
DISPLAY("Welcome to the pseudocode interpreter!") PROCEDURE factorial(x) { IF (x = 1) { RETURN 1 } ELSE { RETURN x * factorial(x-1) } } DISPLAY("The factorial of 6 is") DISPLAY(factorial(6))
Run
Code Output
Helpful Links
Pseudocode Reference Sheet
AP CSP Course Reference (Pseudocode on page 205)
AP Block Markup Language
Code Samples
Factorial Example
Random Box Characters