Numbers

  1. Integer
  2. Store whole Numbers (between -263 to 263 -1)

    Example :

    int sum=235;


  3. Double
  4. Represents numbers with larger decimal points

    Example :

    double coeff=2,5;


  5. Arithmetic Operations

  6. void main() {

      var x = 10;

      var y = 15;

      print("x + y= ${x + y}");

      print("x - y= ${x - y}");

      print("-x= ${-x}");

      print("x * y= ${x * y}");

      print("x / y= ${x / y}:");

      print("y ~/ x= ${y ~/ x}:");

      print("y % x= ${y % x}:");

    }





    x + y= 25
    x - y= -5
    -x= -10
    x * y= 150
    x / y= 0.6666666666666666:
    y ~/ x= 1:
    y % x= 5: