by @Kitan Babade Fork
{"functions":[],"name":"countdown","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_ee6c5093_183a_4ed8_8bed_9035b3f1e70b"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"countdownnum","lengthValue2":"5","id":"id_b47cd767_a6d8_439d_8342_5574e2838d90","initValue":null},{"newline":true,"@type":"Output","id":"id_98f23544_9e5a_4152_ad16_e3e3f8428923","value":"\"Please enter a number\""},{"@type":"Input","name":"countdownnum","id":"id_d29c1051_af3f_4c5d_aebc_8f356b0a92d8","prompt":null},{"newline":true,"@type":"Output","id":"id_033d672c_cd6d_4182_bdc4_b4098695abb7","value":"\"Counting down from \" + countdownnum"},{"condition":"countdownnum != 0","@type":"While","id":"id_9edbae6a_7546_4be3_b3c9_e22fc8370f5f","body":{"statements":[{"@type":"Assign","name":"countdownnum","id":"id_3c37ad31_e4fa_4870_8c4d_ac9b47fe34ad","value":"countdownnum - 1"},{"newline":true,"@type":"Output","id":"id_85cceeac_7250_4dc1_84bb_53cecbded686","value":"countdownnum"}],"id":"id_4fb3eb40_7a35_4cf0_a4ba_dd35f6bffa20"}},{"newline":true,"@type":"Output","id":"id_b3fce513_07a4_4c73_adf2_abaf3e3a97f3","value":"\"Counted down to 0\""},{"@type":"Return","id":"id_213ae6de_c4be_482c_83d6_1654b7e9febd","maybeValue":null}],"parameters":[]},"id":"id_9e39f987_84fd_42ae_8cc7_a525b1778c02","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":287}