Page 111 - Code Craft Computer-7
P. 111

Program 7: To check whether a given number is two-digit number, three-digit number or four-

               digit number

















            On running the above program, we get the following output :























               Program 8: To print the message based on the marks entered, the messages displayed are:

               1.  "Sorry!!!, You are failed in the exam, if the marks are less than 35.

               2.  If the marks are less than or equal to 60, the message displayed is Passed with C grade'.
               3.  If the marks are greater than 60 and less than or equal to 85, the message displayed is
                   'Passed with B grade'.

               4.  If none of the condition evaluates to true, then, the message displayed is 'Passed with A
                   grade.


























                                                                111
   106   107   108   109   110   111   112   113   114   115   116