home
~
projects
~
socials
Print Leading Zeros In Rust
fn
main
(
)
{
let
num
=
10
;
println!
(
"
{:0>5}
"
,
num
)
;
}
Output:
00010
-- end of line --