Page 80 - Dig_CodeAI_V2.1_Class_7
P. 80

Critical Thinking
                     code TASK


                    A.  Create a program to check if a number is divisible by 4 or 5 or by both 4 and 5.


























































                    B.   Create  a program which assigns total marks of a student to a variable, and displays grade by using
                        the logic given below:
                            Total marks > 70, then display grade A

                           Total marks >49 and Total marks <=70, then display grade B
                           Total marks <=49, then display grade C











                       78    DigiCode AI (Ver. 2.1)-VII
   75   76   77   78   79   80   81   82   83   84   85