by @Gervas Bona Fork
{"functions":[],"name":"count down from a given number","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_45c6c034_2f09_41f0_817c_b666ba848c8f"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"count1","lengthValue2":"5","id":"id_50e2b5d1_cd5a_41f1_a564_4258820c0f88","initValue":null},{"newline":true,"@type":"Output","id":"id_ad763fb7_6379_4858_a150_c1266c5a4de1","value":"\"please pick a number to count down from \""},{"@type":"Input","name":"count1","id":"id_21a68059_a3be_4ab2_8a3d_b1da275237ab","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"count2","lengthValue2":"5","id":"id_d1f2cd0a_560f_4ba1_a5e6_dcca050925ec","initValue":"count1+1"},{"condition":"count2 !=count1-count1","@type":"While","id":"id_b4321792_247e_43b2_8dfd_10226d7d1393","body":{"statements":[{"@type":"Assign","name":"count2","id":"id_2023bb67_7ac9_47b2_af39_3c144315e5a7","value":"count2-1"},{"newline":true,"@type":"Output","id":"id_a1374c20_83f6_4805_af81_1b174411d881","value":"count2"}],"id":"id_a9e4fe4a_36b8_4888_8e49_1723a73e249b"}},{"newline":true,"@type":"Output","id":"id_e27af8fe_0347_4499_b5d6_369ac39db58e","value":"\"you have now reached 0\""},{"@type":"Return","id":"id_a8d87092_c249_4216_9ecf_6c1b25539fe9","maybeValue":null}],"parameters":[]},"id":"id_227fcd41_a06b_4e19_8088_458a9b72c870","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":248}