Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute DART Online

/* Simple Hello, World! program */
void main(){
    var b=123;
    String s="shafizadeh";
    int x=12;
    dynamic a;
    a="salam";
    a=123;
    a=false;
    a=12e-3;
    
    const y=3.14;
    var z=const[3,2,1];
    
    int hex=0xABEDA;
    
    var one=int.parse("33");
    
    String pi=3.1415.toStringAsFixed(2);
    
    var list=[1,2,3];
    print(list[2]);
    list[1]=5;
    print(list);
    
    list.add(10);
    print(list);
   print("Hello, World!");
   print("$pi");
   print("$s $a $b $x $y $z $hex ${a*y} $one");
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.