Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
[Rust] Calling a function demo.
cwchen
Aug 23rd, 2017
1,876
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Rust
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
// Call f64 module
use
std
::
f64
;
fn
main
(
)
{
// Call sqrt function
let
n
=
f64
::
sqrt
(
4.0
)
;
println
!
(
"{}"
,
n
)
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
z66is_archive.zip.txt
5 hours ago | 1.05 MB
Untitled
7 hours ago | 71.19 KB
Untitled
7 hours ago | 64.82 KB
Untitled
7 hours ago | 88.55 KB
Untitled
7 hours ago | 65.48 KB
Untitled
8 hours ago | 95.14 KB
Untitled
8 hours ago | 78.82 KB
Untitled
8 hours ago | 59.02 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!