Page 126 - CG_v2.1_flipBooks_class_5
P. 126

In computer programming, variables are used as empty boxes that we can name and assign
                  a value as per our requirement.

                  Math Operators

                  Operators are the action elements of a computer program. They perform actions such as
                  adding two variables, dividing one variable by another variable, comparing one variable to
                  another variable, etc.

                  Overall result is completely dependent on the type of
                  operator we have used.

                  For example: In 10+20, the numbers ‘10’ and ‘20’
                  are operands and ‘+’ is the operator.


                  Blocks for operators are present in Math category in AI connect.



                                 Math Block                    Example                      Outcome



                                                                                          Answer is: 16




                                                                                          Answer is: 5





                                                                                          Answer is: 18




                                                                                         Answer is: 2.5





                                                                                          Answer is: 1


                  Round up

                  ‘Round-up’ is a math feature majorly used in shopping
                  bills to find the nearest upper value.

                  Round down

                  ‘Round-down’ is a math feature mainly used in shopping
                  bills to find the nearest lower value.






                      124    Computer Genius (V2.1)-V
   121   122   123   124   125   126   127   128   129   130   131