Page 104 - Computer_Genius_v2.1_C7_flipbook
P. 104

Step 4   Define a new variable “converted time” to store the value of 120 min changed into hours.

                              Block Code


















                                                   Textual code










                   Step 5   To print the Converted time, follow the given instructions.

                              Block Code



















                                                   Textual code

















                    There are 60 minutes in 1 hour. Therefore, to convert  minutes to hours, divide the number of
                    minutes by 60.



                      102    Computer Genius (V2.1)-VII
   99   100   101   102   103   104   105   106   107   108   109