Page 69 - Touchcode_C5_Flipbook
P. 69

C.  Write the output of the following programs:                                              Time Taken
                                                                                                        Min.

                       1      Repeat 3 times


                              {
                                   Enter num

                              }

                              If num1 > num2

                              Then
                                   Print “num1 is greater”

                              Else

                                   Print “num2 is greater”





                                    Num1                     4                      7                    87


                                    Num2                     7                      5                    34

                                     Print




                       2      Repeat 5 times

                              {

                                    Read marks

                                    If marks is > 50

                                    Then
                                          Display Pass

                                    Else

                                          Print Fail

                              }



                                 Marks            45            40             55             49            85


                                 Result



                                                                         Level 4: Algorithmic Intelligence       67
   64   65   66   67   68   69   70   71   72   73   74