Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -1,13 +0,0 @@
|
|||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let args: Vec<_> = env::args().collect();
|
||||
let a = args[1].parse::<i32>().unwrap();
|
||||
let b = args[2].parse::<i32>().unwrap();
|
||||
|
||||
println!("sum: {}", a + b);
|
||||
println!("difference: {}", a - b);
|
||||
println!("product: {}", a * b);
|
||||
println!("integer quotient: {}", a / b); // truncates towards zero
|
||||
println!("remainder: {}", a % b); // same sign as first operand
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue