Page 55 - Digicode_AI_class_8
P. 55

4




































                                                Algorithmic


                                                Intelligence





              Learning Outcomes

                 Multiple Conditions in a Program              Loops in a Program



                                                                                   Critical Thinking


                Write the output of the following statements:

                 1. if (today is Sunday)                  2. a=65

                   then                                     if (a>90)
                       display “Weekend”                    then

                   else                                        display “Excellent”
                       display “No weekend”                 else

                                                                display “Try harder”











                                                                                 Algorithmic Intelligence  53
   50   51   52   53   54   55   56   57   58   59   60