Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 107 - 2609_Logiccode
P. 107

    Block                        Name                            Description

                                                 multiplication               Return the product of the two numbers.

                                                 division                     Return the quotient of the two numbers.

                                                                              Return  the  remainder  after  performing
                                                 remainder of
                                                                              the division operation.
                                                                              Return the  minimum  between  two
                                                 min
                                                                              numbers.

                                                                              Return the maximum  between  two
                                                 max
                                                                              numbers.

                                                 absolute of                  Return the absolute value of a number.

                                                 square root                  Return the square root of a number.

                                                                              Round of a number to the nearest whole
                                                 round
                                                                              number.

                                                                              Generate  random  numbers  within  a
                                                 pick random
                                                                              specified 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  105

| 102 103 104 105 106 107 108 109 110 111 112 |