logo CodeStepByStep logo

Dracula

Language/Type: VB string

What is the value of s after the following code is finished running?

Dim s As String = "Dracula"
For i As Integer = 0 To s.Length - 1
    Dim a As Char = s.Chars(0)
    Dim b As String = s.Substring(1)
    s = b & a
Next
value of s
(order shuffled)

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.