Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch03-common-programming-concepts
/
no-listing-07-numeric-operations
/
src
/
main.rs
blob: 0a784bbc21d8f6946f22023d411287f0aff45297 [
file
] [
log
] [
blame
]
fn
main
()
{
// addition
let
sum
=
5
+
10
;
// subtraction
let
difference
=
95.5
-
4.3
;
// multiplication
let
product
=
4
*
30
;
// division
let
quotient
=
56.7
/
32.2
;
// remainder
let
remainder
=
43
%
5
;
}