{"functions":[],"name":"Chacon_Matias_Factorial","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_001_begin"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"valor","lengthValue2":"5","id":"id_002_decl_valor","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"indice","lengthValue2":"5","id":"id_003_decl_indice","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"factorial","lengthValue2":"5","id":"id_004_decl_factorial","initValue":null},{"@type":"Input","name":"valor","id":"id_005_input_valor","prompt":"Ingrese un numero mayor que 0:"},{"condition":"valor <= 0","@type":"While","id":"id_009_while_validacion","body":{"statements":[{"newline":true,"@type":"Output","id":"id_006_out_error","value":"\"Error: el numero debe ser mayor que 0.\""},{"@type":"Input","name":"valor","id":"id_007_input_valor_retry","prompt":"Ingrese un numero mayor que 0:"}],"id":"id_008_while_val_body"}},{"@type":"Assign","name":"factorial","id":"id_010_assign_factorial","value":"1"},{"@type":"Assign","name":"indice","id":"id_011_assign_indice","value":"1"},{"condition":"indice <= valor","@type":"While","id":"id_015_while_factorial","body":{"statements":[{"@type":"Assign","name":"factorial","id":"id_012_mult_factorial","value":"factorial * indice"},{"@type":"Assign","name":"indice","id":"id_013_inc_indice","value":"indice + 1"}],"id":"id_014_while_fact_body"}},{"newline":true,"@type":"Output","id":"id_016_out_result","value":"\"El factorial de \" + valor + \"! es: \" + factorial"},{"@type":"Return","id":"id_017_return","maybeValue":null}],"parameters":[]},"id":"id_c15dc2eb_0b27_4940_a109_a63a76b59fe1","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":true},"version":"0.3","revision":17}