This commit is contained in:
2021-07-17 12:54:25 -05:00
parent 4d2ef1b627
commit bac84f7498

View File

@@ -16,25 +16,25 @@ fn main() {
// println!("The value of x is: {}", x); // println!("The value of x is: {}", x);
// addition // // addition
let sum = 5 + 10; // let sum = 5 + 10;
print_type_of(&sum); // print_type_of(&sum);
// subtraction // // subtraction
let difference = 95.5 - 4.3; // let difference = 95.5 - 4.3;
print_type_of(&difference); // print_type_of(&difference);
// multiplication // // multiplication
let product = 4 * 30; // let product = 4 * 30;
print_type_of(&product); // print_type_of(&product);
// division // // division
let quotient = 56.7 / 32.2; // let quotient = 56.7 / 32.2;
print_type_of(&quotient); // print_type_of(&quotient);
// remainder // // remainder
let remainder = 43 % 5; // let remainder = 43 % 5;
print_type_of(&remainder); // print_type_of(&remainder);
let t = true; let t = true;
print_type_of(&t); print_type_of(&t);