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);
|
// 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("ient);
|
// print_type_of("ient);
|
||||||
|
|
||||||
// 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user