by @Zohaan Siyad Fork
{"functions":[],"name":"number guessing","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_745ab8d0_f3dd_412d_a51e_6bae0f649705"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"num","lengthValue2":"5","id":"id_d98bfa61_8981_4a3c_9b33_b876d1326e6e","initValue":"18"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"guess","lengthValue2":"5","id":"id_b62ae264_d587_4620_bbd0_7135cb0aa193","initValue":null},{"newline":true,"@type":"Output","id":"id_7d93120a_6b0f_41a3_82c8_0223e9d922ad","value":"\"Guess the random number between 1 and 31\""},{"@type":"Input","name":"guess","id":"id_72791885_f72a_4530_86a1_cf2e9b147ed9","prompt":null},{"condition":"num!=guess","@type":"While","id":"id_3e067105_604a_4d6f_ae7f_3821d7141c08","body":{"statements":[{"newline":true,"@type":"Output","id":"id_2c2a25e5_0850_4c50_92ba_195e36a1be61","value":"\"incorrect, try again\""},{"@type":"Input","name":"guess","id":"id_922b2ccb_70aa_4b5f_8dfb_e736d5eecff2","prompt":null}],"id":"id_49990bbe_243d_4b35_bc69_9775150361c6"}},{"newline":true,"@type":"Output","id":"id_0b9d9b06_46a9_4ef4_835a_f5dc48a156a6","value":"\"well done, you guessed correctly!\"+num"},{"@type":"Return","id":"id_0a2a844d_727c_4e43_a4c2_024c98afa6b0","maybeValue":null}],"parameters":[]},"id":"id_90354ab9_daea_4ff3_b029_e5ddc337dea8","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":343}