Demo: Create and use scalar data types [10 of 35] | Beginner's Series to: Rust

Play Demo: Create and use scalar data types [10 of 35] | Beginner's Series to: Rust

The Discussion

  • User profile image
    jayc971

    println!("a={}\nb={}\nx={}\ny={}\nsum={}\ndifference={}\nproduct={}\nquotient={}\nremainder={}\nt={}\nf={}\nc={}\nd={}",a, b, x, y, sum, difference, product, quotient, remainder, t, f, c, d);

    After declaring all the variables, the above code will display an output like below,

    a=5
    b=1
    x=2
    y=3
    sum=6
    difference=1
    product=20
    quotient=3
    remainder=0
    t=true
    f=false
    c=Γÿ║
    d=a

Add Your 2 Cents