Post

@clcoding 20, 15
The given code a variable ‘num’ is assigned the value 20.
Then the ‘while loop’
The while loop repeats a block of code as long as a specified condition
remain true.
Checks to see if the value is ‘greater’ then 10.
+
English

@clcoding If that remains, it will run the block within, which subtracts 5 from tne value on each iteration.
Hence,
First iteration; 20 is definitely more than 10, so it enters the block prints 20 and subtracts 5 making it 15.
Second iteration; similarly,
+
English


