by @1ronman Fork
{"functions":[{"rawId":"id_55e8f6e1_60d9_4b7b_a6b3_17e7174ca219","tpe":"Integer","name":"fact","statements":[{"@type":"Begin","id":"id_98319b16_7636_4c06_8617_dfd6981ece39"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"res","lengthValue2":"5","id":"id_9226b7b9_02e5_46b3_9451_0bb8156714ae","initValue":null},{"falseBlock":{"statements":[{"@type":"Assign","name":"res","id":"id_7b76ad66_819d_44b7_ab27_242b063622de","value":"1"}],"id":"id_0cc3ba4e_ced2_4f7c_a67f_0f74f08248e4"},"trueBlock":{"statements":[{"@type":"Assign","name":"res","id":"id_8d64e5b5_0e84_44a7_9881_96014da3f78a","value":"n * fact(n-1)"}],"id":"id_4042edcc_5a31_4d08_a5a6_589bb1e643d4"},"condition":"n > 1","@type":"If","id":"id_8c1f71ca_eba4_42c4_8931_6e111c72e595"},{"@type":"Return","id":"id_5a4b4d74_b402_476e_bd07_3a676cf487e0","maybeValue":"res"}],"parameters":[{"tpe":"Integer","name":"n","id":"346171a0-51ee-4cef-9ffe-17af05f355d0"}]}],"name":"Factorial Recursive (Input)","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_10fadbc0_5c9b_4a15_a7d2_990aaf2185c9"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"x","lengthValue2":"5","id":"id_89b2a58c_cf70_4419_b71f_b5f88a9e03b5","initValue":null},{"@type":"Input","name":"x","id":"id_89b8d0c1_861b_42a6_be23_09cc0966382f","prompt":null},{"newline":true,"@type":"Output","id":"id_c0c0964c_4de1_477f_a84e_0f4ac3d2847d","value":"fact(x)"},{"@type":"Return","id":"id_8f929e66_3b1a_4d29_b83a_d6ee85f190b0","maybeValue":null}],"parameters":[]},"id":"id_1e84faa7_059d_409c_9ab6_db6a5f3ca8f4","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":294}