Remmain Program

170 CLS:PRINT"THE MONTH GAME":PRINT

175 REM GET A RANDOM MONTH FROM 1 TO 12

176 REM THEN DISPLAY THE QUESTION 180 M = RND<12 >

185 REM NOTICE HOW SIMPLE IT IS TO DISPLAY THE MONTH NAME

186 REM THE DESIRED MONTH NUMBER IS SIMPLY THE INDEX IN THE

187 REM MONTH ARRAY ... NO MUSS, NO FUSS 190 PRINTTAB(5 >"HOW MANY DAYS ARE THERE IN ";M*<M>; 200 INPUT D

205 REM HERE AGAIN, SEE HOW SIMPLE IT IS TO GET THE NUMBER OF

206 REM DAYS IN THE MONTH. AGAIN THE INDEX IS A NATURAL WAY

207 REM TO GET THE DATA FROM THE ARRAY

215 REM WRONG ANSWER

0 0

Post a comment