{"functions":[],"name":"Per il 1","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_8c496d26_f666_46be_941b_1172afd6e90e"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Costo","lengthValue2":"5","id":"id_1d65ded5_5532_422a_9703_623bff34474c","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Scelta","lengthValue2":"5","id":"id_ff790ea6_1db7_41c6_ae37_942575a848aa","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Credito","lengthValue2":"5","id":"id_9733498c_2f8e_4b62_b946_f710439e59db","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"Continua","lengthValue2":"5","id":"id_49baaffb_d7b9_43dc_9a06_484bf6e5cffd","initValue":"\"Si\""},{"@type":"Assign","name":"Continua","id":"id_4e5fbce8_76fd_4284_9175_b7b41a608d49","value":"\"Si\""},{"newline":true,"@type":"Output","id":"id_5038cd00_14ac_47d2_88f2_383f30d04fce","value":"\"Inserisci denaro ( minimo 1€)\""},{"@type":"Input","name":"Credito","id":"id_fa246d4b_f387_4f70_a99a_544d5dade936","prompt":null},{"condition":"Credito<1","@type":"While","id":"id_4a8d7a13_77b4_4911_b2c8_81c45cea128b","body":{"statements":[{"newline":true,"@type":"Output","id":"id_6c0ec21f_76c2_4ecc_bd5b_93076e4b5709","value":"\"Denaro insufficiente. Inseriscialmeno 1€\""},{"@type":"Input","name":"Credito","id":"id_48824d61_a2a7_4eb8_9ae0_5a4f06bce41f","prompt":null}],"id":"id_67adaa1d_6576_4cb8_8f7b_9b0114c82e64"}},{"condition":"Continua==\"Si\" && Credito>=1","@type":"DoWhile","id":"id_2e87db22_e057_4a63_8665_fddcc82aa17a","body":{"statements":[{"newline":true,"@type":"Output","id":"id_244a0e88_9b08_41c4_b1e1_0bc0a8abf11d","value":"\"Menu: 1=Acqua(1€) 2=Tè(2€) 3=Snack(3€)\""},{"@type":"Input","name":"Scelta","id":"id_3fe11563_b4d8_4c73_8f13_f05032dd9618","prompt":null},{"falseBlock":{"statements":[],"id":"id_5354d846_cc86_412a_ad47_46d58efcbb1b"},"trueBlock":{"statements":[{"@type":"Assign","name":"Costo","id":"id_785bbf7b_5d6d_43f4_b219_4d01e68b65b9","value":"1"}],"id":"id_654c8138_2794_4216_b8ce_93cb2f7def5d"},"condition":"Scelta==1","@type":"If","id":"id_bb3a02d0_2d7a_476d_b8eb_8c59bedf23ce"},{"falseBlock":{"statements":[],"id":"id_87276d04_8737_4772_a163_de88bb755590"},"trueBlock":{"statements":[{"@type":"Assign","name":"Costo","id":"id_458a0116_fc0f_444b_a4a0_e29a80d16e00","value":"2"}],"id":"id_0d783c05_1690_4275_b9e3_eb0719bf454f"},"condition":"Scelta==2","@type":"If","id":"id_e1d9b3f1_54d5_4c59_a1fd_fcfa11f462df"},{"falseBlock":{"statements":[],"id":"id_5ed1a4be_3343_43eb_99fc_b7f4c744faa7"},"trueBlock":{"statements":[{"@type":"Assign","name":"Costo","id":"id_6a8182cc_7525_4170_b143_a6dbe7b5715a","value":"3"}],"id":"id_2da3ec85_6e84_4141_939d_1e929f675773"},"condition":"Scelta==3","@type":"If","id":"id_a8e8aa05_1146_4f81_ba0f_adcae935b0a1"},{"falseBlock":{"statements":[{"@type":"Assign","name":"Credito","id":"id_904f5044_5f87_4da8_ae91_fc825e825147","value":"Credito-Costo"},{"newline":true,"@type":"Output","id":"id_4936dadb_9fe5_41c0_be80_27b61ad086c7","value":"\"Prodotto erogato\""},{"newline":true,"@type":"Output","id":"id_b672406c_aacd_40af_bce4_a50045e87b55","value":"\"Credito rimanente \"+Credito"}],"id":"id_d3c997b4_5504_4f9a_8e76_e7e612e41b08"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4ac72004_df64_40a4_aa1c_20e69f3cca1a","value":"\"Credito insufficiente\""}],"id":"id_531c2324_f5ba_46bc_acb4_a3fa438149bd"},"condition":"Credito<Costo","@type":"If","id":"id_1038ecac_b750_4c50_80da_00f2219c39b9"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a06817d0_71d1_490a_ac56_e006fb52c934","value":"\"Credito terminato\""},{"@type":"Assign","name":"Continua","id":"id_868daf4e_46b2_40d2_98ae_13cdb130a8c3","value":"\"No\""}],"id":"id_4f6a09d5_4a16_4c81_8ef6_f9afb7e514fd"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_7beffad8_20cd_4b01_bc10_d418a4fbc956","value":"\"Vuoi aquistare un altro prodotto? (Si/No)\""},{"@type":"Input","name":"Continua","id":"id_14be291d_fb3a_4178_a5bd_96ae31815163","prompt":null}],"id":"id_0ec8de4c_33d4_4a23_b31d_7395d599f2b7"},"condition":"Credito>=1","@type":"If","id":"id_876be956_5a91_466d_9c1a_69c097cacc91"}],"id":"id_3b831703_4d81_49b5_9c15_6d433ade4fdc"}},{"@type":"Return","id":"id_299cbed9_c642_41a3_ae45_98831e8ecffd","maybeValue":null}],"parameters":[]},"id":"id_de8a4e28_934f_48f1_aa6d_6ae056591265","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"c#","showGenCode":true},"version":"0.3","revision":1027}