4th step
This commit is contained in:
30
src/main.rs
30
src/main.rs
@@ -16,25 +16,25 @@ fn main() {
|
||||
|
||||
// println!("The value of x is: {}", x);
|
||||
|
||||
// addition
|
||||
let sum = 5 + 10;
|
||||
print_type_of(&sum);
|
||||
// // addition
|
||||
// let sum = 5 + 10;
|
||||
// print_type_of(&sum);
|
||||
|
||||
// subtraction
|
||||
let difference = 95.5 - 4.3;
|
||||
print_type_of(&difference);
|
||||
// // subtraction
|
||||
// let difference = 95.5 - 4.3;
|
||||
// print_type_of(&difference);
|
||||
|
||||
// multiplication
|
||||
let product = 4 * 30;
|
||||
print_type_of(&product);
|
||||
// // multiplication
|
||||
// let product = 4 * 30;
|
||||
// print_type_of(&product);
|
||||
|
||||
// division
|
||||
let quotient = 56.7 / 32.2;
|
||||
print_type_of("ient);
|
||||
// // division
|
||||
// let quotient = 56.7 / 32.2;
|
||||
// print_type_of("ient);
|
||||
|
||||
// remainder
|
||||
let remainder = 43 % 5;
|
||||
print_type_of(&remainder);
|
||||
// // remainder
|
||||
// let remainder = 43 % 5;
|
||||
// print_type_of(&remainder);
|
||||
|
||||
let t = true;
|
||||
print_type_of(&t);
|
||||
|
||||
Reference in New Issue
Block a user