Print to Same Length
[email protected] // 1.0
Assume two string variables named ruler
and text
have been set for you.
First print ruler
on its own line.
Then print only as much of text
as needed to match the length of ruler
.
If ruler
is longer than text
, print extra dots after text
to match ruler
's length.