Use the BASIC program below to answer questions 23 to 25 10 LET K =…