{"functions":[],"name":"Saldo conto","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_0b125fb2_e3ae_476b_bb90_3d2da3c2dc69"},{"@type":"Declare","tpe":"Integer","name":"NE","id":"id_66ee0e4e_4b86_47e3_bc58_85c5c731dbdb","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"NU","id":"id_29da8f54_631a_49ba_9a4a_dc5438f3b92b","initValue":"0"},{"@type":"Input","name":"NE","id":"id_2ee67484_d88e_4d76_8bd6_5d54883e3dec","prompt":"Inserisci il numero di entrate."},{"condition":"NE<0","@type":"While","id":"id_2b065ed7_6381_4334_aaca_16009b3bdaf0","body":{"statements":[{"newline":true,"@type":"Output","id":"id_7fd2f730_073e_4a3f_9c6e_a3438e296af4","value":"\"Errore: il numero di entrate deve essere positivo.\""},{"@type":"Input","name":"NE","id":"id_3b5f145d_3140_486f_bc8e_19c3a7df4609","prompt":"Inserisci il numero di entrate."}],"id":"id_8d31a6ec_3541_44df_8278_cb6ac873c592"}},{"@type":"Input","name":"NU","id":"id_f29982c8_8ae6_4385_8058_8bac31af0d33","prompt":"Inserisci il numero di uscite."},{"condition":"NU<0","@type":"While","id":"id_384dd3c1_fbca_4409_af0d_a326133f17a7","body":{"statements":[{"newline":true,"@type":"Output","id":"id_6c746b5e_ad8e_431a_8c86_f9806e615df6","value":"\"Il numero di uscite deve essere positivo.\""}],"id":"id_a41be865_9303_475b_80af_1c79aac5e29e"}},{"@type":"Declare","tpe":"Integer","name":"i","id":"id_6c5e8a0a_ecdd_43bb_a3d5_a1cafe8fb8a8","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"j","id":"id_bf108469_0fb8_42c9_b896_b34084ecee50","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"sommaE","id":"id_b784e77d_340f_4d12_8a0b_01965b0d2b61","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"sommaU","id":"id_d7cd1cd9_aa46_4906_a95b_49ffc33c3a1b","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"Vi","id":"id_81b304ec_bc92_48a5_ab50_a54e3d5eb879","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"Vj","id":"id_f4d5de80_4307_428f_92ce_2a7c48575c84","initValue":"0"},{"condition":"i!=NE","@type":"While","id":"id_44e18df2_442d_4bf4_91ed_aff649ed1f0d","body":{"statements":[{"@type":"Assign","name":"i","id":"id_cb4ca59c_edb6_4b56_b855_9560321f8e20","value":"i + 1"},{"@type":"Input","name":"Vi","id":"id_8dffd458_500b_493d_9fd4_f23661b3565e","prompt":"Inserisci il valore di ciascuna entrata."},{"@type":"Assign","name":"sommaE","id":"id_0d6983f8_357d_47be_aa61_93ae02391d07","value":"Vi + sommaE"}],"id":"id_2944e2c0_5f46_4d1d_a247_d63b0cea4f88"}},{"condition":"j!=NU","@type":"While","id":"id_7742bef2_c9b3_410b_af15_c9e062b97655","body":{"statements":[{"@type":"Assign","name":"j","id":"id_d8a5430d_77e1_435e_8b3c_be4e1ac0cf63","value":"j + 1"},{"@type":"Input","name":"Vj","id":"id_ac7c1db7_b8a7_42f9_bab2_acf0df1ddabc","prompt":"Inserisci il valore di ciascuna uscita."},{"@type":"Assign","name":"sommaU","id":"id_a2a7ab3e_99ba_4bd3_9001_02f3a6fb1e68","value":"Vj + sommaU"}],"id":"id_861d7862_9876_4d8f_8d1a_ed5721c43b75"}},{"@type":"Declare","tpe":"Integer","name":"S","id":"id_43cc7549_36d7_4739_ae30_231bc8a9662c","initValue":"sommaE + sommaU"},{"newline":true,"@type":"Output","id":"id_92d3a5ed_98dd_42f5_a76d_f152e0966238","value":"\"Il saldo del tuo conto รจ \" + S"},{"@type":"Return","id":"id_e721d529_4718_4c30_8ac5_018e4e5ae70e","maybeValue":null}],"parameters":[]},"id":"id_9fbe01d2_25e7_4975_8e01_83def008ad06","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":634}