by @Alessandro Hajny Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_a64e00fd_f220_410d_8fd6_242b3b6eef39"},{"@type":"Declare","tpe":"Integer","name":"n","id":"id_2c00af94_2a99_4ab3_95d7_b4c094a88884","initValue":null},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_338d67d4_f886_4a44_8348_c5bbcb70280c","initValue":null},{"@type":"Input","name":"n","id":"id_db41bc99_9a5b_4feb_a980_e09b282275ac","prompt":null},{"@type":"Input","name":"x","id":"id_c18d0d80_2ab6_4323_89be_8720a912afb0","prompt":null},{"condition":"n<0||x<0","@type":"While","id":"id_2a2e773a_53e0_440f_9956_e0716cb976e8","body":{"statements":[{"newline":true,"@type":"Output","id":"id_f6d78602_8f43_4bf6_b59b_89a5948c35c5","value":"\"inserire numeri maggiori di 0\""},{"@type":"Input","name":"n","id":"id_4ac50c6f_1214_4238_b745_c3fdf8933253","prompt":null},{"@type":"Input","name":"x","id":"id_9da5e935_4bd0_4084_9dbf_01b15b30208a","prompt":null}],"id":"id_0eb2d766_7b36_47be_9567_2fe0a4a868a4"}},{"varName":"i","incr":"1","@type":"ForLoop","start":"0","end":"x","id":"id_ab4c9a30_1b83_46f2_a474_c06edc0c70e0","body":{"statements":[{"@type":"Assign","name":"n","id":"id_54e1a7f6_cc1b_4189_8b3f_2079aa8358ea","value":"n*n"}],"id":"id_c1237c77_3bb4_4a02_8a8a_ca0e4fd58cdf"}},{"newline":true,"@type":"Output","id":"id_5e3ec17a_755e_410e_8862_5199abf7352b","value":"n"},{"@type":"Return","id":"id_e3bfa9ae_cc76_40ca_aa53_17d0c15b051a","maybeValue":null}],"parameters":[]},"id":"id_78e8ebae_944c_427d_9abd_5a649d677b59","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":142}