You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){let n_1 =2;let n_2 =6;let sum = n_1 + n_2;let min = n_1 - n_2;let div = n_1 / n_2;let mul = n_1 * n_2;println!("A Rust program to perform mathematical operations between two numbers.Its print the result of addition,subtraction, division, and multiplication in between these two variables.!");println!("Addition: {} + {} = {}",n_1,n_2,sum);println!("Subtraction: {} - {} = {}",n_1,n_2,min);println!("Division: {} / {} = {}",n_1,n_2,div);println!("Multiplication: {} * {} = {}",n_1,n_2,mul);}
A Rust program to perform mathematical operations between two numbers.
Its print the result of addition,subtraction, division, and multiplication in between these two variables.!
Addition: 2 + 6 = 8
Subtraction: 2 - 6 = -4
Division: 2 / 6 = 0
Multiplication: 2 * 6 = 12
Errors:
Compiling playground v0.0.1 (/playground)
Finished dev [unoptimized + debuginfo] target(s) in 0.65s
Running `target/debug/playground`
The text was updated successfully, but these errors were encountered:
(Playground)
Output:
Errors:
The text was updated successfully, but these errors were encountered: