by @Sara Maria Dragomir Fork
{"functions":[],"name":"problema 9","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_93dd6724_fbf4_4e0a_9f47_5a15aa00dfd5"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"x","lengthValue2":"5","id":"id_ee7750c4_35cb_4ca1_bb8f_41a25708b32a","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"max","lengthValue2":"5","id":"id_c7e6cd29_8a73_4e82_a871_bfb087eb3b40","initValue":null},{"@type":"Input","name":"x","id":"id_4f8092e4_430b_4b18_9e92_8370e820cdd1","prompt":null},{"@type":"Input","name":"max=0","id":"id_f98bf487_883d_44ca_9921_d41eb5174034","prompt":null},{"condition":"x>0","@type":"While","id":"id_02ef6cfd_e7e2_452b_a202_637f6617a202","body":{"statements":[{"falseBlock":{"statements":[],"id":"id_44d96c2c_0ce8_4669_a765_85e2800cd453"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_46b6c497_5fa5_4284_9613_1ba979597299","value":"max==x%10"}],"id":"id_ad37845d_4a04_46ff_b4f0_a50375a8a616"},"condition":"x%10>max","@type":"If","id":"id_9d53f40b_11a0_48e7_a1a4_54a1121409cb"},{"newline":true,"@type":"Output","id":"id_a47935f1_cab7_49cb_b1db_39ef051734bf","value":"x==x/10"}],"id":"id_7218e6da_4fdc_4763_92c5_a7f458494843"}},{"newline":true,"@type":"Output","id":"id_ba24ad3d_37a1_4869_bd3c_bf9f6a27bc2f","value":"\"max\""},{"@type":"Return","id":"id_9215fb4a_45a0_469d_a456_2aa48b9d221c","maybeValue":null}],"parameters":[]},"id":"id_71ba6c29_52ed_49fe_ae7a_d49d3fd335df","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"c++","showGenCode":true},"version":"0.3","revision":102}