+ 2
a do while loop executes a block of code once and checks the while condition. If its false, it runs again until true so... num = 5 do { SYS_OUT "PRINT THIS" num = num - 1 }while num > 0 and num = 4 do { SYS_OUT "PRINT THIS" num++ } while( num == 0) Homework: how many times will PRINT THIS print on each loop?
7th Mar 2018, 3:05 AM
怌ļ¼Øļ¼”ļ¼°ļ¼°ļ¼¹ ļ¼“ļ¼Æ ļ¼Øļ¼„ļ¼¬ļ¼°ć€
怌ļ¼Øļ¼”ļ¼°ļ¼°ļ¼¹ ļ¼“ļ¼Æ ļ¼Øļ¼„ļ¼¬ļ¼°ć€ - avatar