by @Pedro Ribeiro Fork
{"functions":[],"name":"3.","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_85faedb7_1f04_4c51_9235_ff25d11fac1b"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"trocos","lengthValue2":"5","id":"id_89fa5641_0573_4413_8688_2bbeb44287b2","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"distancia","lengthValue2":"5","id":"id_71e62cb8_9cff_4ae6_8069_61b73151c206","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"total","lengthValue2":"5","id":"id_f445cc4d_1b75_4697_9383_8cf3338a5872","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"longo","lengthValue2":"5","id":"id_ea4f287f_a942_44d0_8d39_7964f3690cbc","initValue":"0"},{"newline":true,"@type":"Output","id":"id_173b272a_59ff_40f7_b7de_e7b7c95cf214","value":"\"quantos troco?\""},{"@type":"Input","name":"trocos","id":"id_a8578c63_f2c0_4b51_ace7_2b201648a323","prompt":null},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"trocos","id":"id_610a8089_d83a_4211_a5fe_e1b4da98bfe2","body":{"statements":[{"newline":true,"@type":"Output","id":"id_9cf6f827_e75a_4000_8d80_932f49a8aaa0","value":"\"qual é a distancia\""},{"@type":"Input","name":"distancia","id":"id_f5140388_14d6_40fd_8ee0_90477826c221","prompt":null},{"@type":"Assign","name":"total","id":"id_d05b70d7_0cd4_4a50_97e6_656a5694f976","value":"total + distancia"},{"falseBlock":{"statements":[],"id":"id_32728c26_bfef_428d_b964_2e13eae96e04"},"trueBlock":{"statements":[{"@type":"Assign","name":"longo","id":"id_5bb42738_6cff_4aad_a961_9e2ea566e52c","value":"distancia"}],"id":"id_1b52a9dd_9bc7_4aef_b125_63dbab5b12c1"},"condition":"distancia > longo","@type":"If","id":"id_610fddcf_4f81_4c83_b7fa_c9a7f0d3db96"}],"id":"id_1e06ab82_ae0b_42b1_b86d_5c01bb0313ae"}},{"newline":true,"@type":"Output","id":"id_cd001d4f_634d_443f_9965_ade2c8c1c5be","value":"\"total: \" \"+ total"},{"newline":true,"@type":"Output","id":"id_781dd28d_d8cc_4f66_902f_086c02cff5b1","value":"\"mais longo km: \" + longo"},{"@type":"Return","id":"id_4a297578_7790_4479_a121_0b1b6729fdaa","maybeValue":null}],"parameters":[]},"id":"id_84466b23_49e9_4eb2_bd3c_33a7c135ed4a","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":406}