Page 69 - Dig_CodeAI_V2.1_Class_7
P. 69

Block                 Name                           Description


                                               multiplication    Return the product of the two numbers.



                                               division          Return the quotient of the two numbers.

                                                                 Return  the  remainder  after  performing  the
                                               remainder of
                                                                 division operation.

                                               min               Return the minimum between two numbers.



                                               max               Return the maximum between two numbers.



                                               absolute of       Return the absolute value of a number.


                                               square root       Return the square root of a number.



                                               round             Round of a number to the nearest whole number.


                                                                 Generate  random  numbers  within  a  specified
                                               pick random
                                                                 range.


                 Let us create a simple project to perform the sum of two numbers. Follow the given steps to do so:


                                                        2  Drag the set to block and
                                                       drop it inside the on start block.



                                                                                            3  Click on the
                                                                                           down arrow of
                                                                                           the set to block.


                                                                                            4  Select the
                                                                                           num1 variable.











                            1  Create two variables named num1 and num2.






                                                                                  More on MakeCode Arcade     67
   64   65   66   67   68   69   70   71   72   73   74