⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’

Excalidraw Data

Text Elements

Start

Initialise: current_number = 1, factorial_result = 1

Input number: prompt user for positive number input

Check negative?

Error message: display error for negative input

Multiply: factorial_result = factorial_result * current_number

Increment: current_number = current_number + 1

Check counter?

Output result: display computed factorial

End

Yes

No

Yes

No