by @Jesús Chan Fork
{"functions":[],"name":"Ejercicio#1 totalpagar","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_2180e9f2_9c8d_459b_9346_2683f5af69ac"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"descuento","lengthValue2":"5","id":"id_900737e5_43a5_41cd_9f56_8b33133ea863","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"compra","lengthValue2":"5","id":"id_0e40249b_b0f5_490a_b701_8251a6394820","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"preciofinal","lengthValue2":"5","id":"id_102ad8fe_2136_46a7_ad01_5eb77fd1a5d6","initValue":null},{"newline":true,"@type":"Output","id":"id_f11f5edd_0e57_4dc1_b3c3_f31410710d85","value":"\"ingresetotaldecompra\""},{"@type":"Input","name":"compra","id":"id_d38ff6fd_22d2_4806_b3f6_bd04c998c7a2","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_9818f76e_0422_425c_b479_86599ec03032","value":"\"no recibe descuento\""}],"id":"id_17c4c809_74e7_47cd_80e5_91b2d8a44fe7"},"trueBlock":{"statements":[{"@type":"Assign","name":"descuento","id":"id_7f2afb7a_093c_441b_9c8c_36ae5df4bab5","value":"compra*0.10"},{"newline":true,"@type":"Output","id":"id_501388e7_1396_44fc_9a6d_610ad41c3aeb","value":"\"a su compra se le restara el 10%\""},{"newline":true,"@type":"Output","id":"id_7a52a6b4_0600_46c1_8544_585da0fac37b","value":"\"descuento\""},{"@type":"Assign","name":"preciofinal","id":"id_0c770ed1_ff9d_4532_a7e4_fa260c3b173e","value":"compra-descuento"},{"newline":true,"@type":"Output","id":"id_42b37c93_bd51_4036_b7d6_fb3310db9150","value":"\"preciofinal\""}],"id":"id_21ef3649_87e5_40bf_91e5_2e7f90e799ea"},"condition":"compra>=1000","@type":"If","id":"id_9b0f2e0f_9a34_4271_b8e4_12cecebd5fdb"},{"@type":"Return","id":"id_b92bf2ec_4a83_4c63_be21_3ed76589d350","maybeValue":null}],"parameters":[]},"id":"id_f1411b6a_d5a5_466d_87bc_87cd16fd98a3","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.3","revision":461}