C#C
C#3y ago
MR1R0B0T

✅ Results in Console won't give me the values that I need in printing them

I would like to ask what's wrong with my code why it won't print the other methods value but instead only the first value? Was this because of the parameters I used?

This is my code:

Console.WriteLine("Results: "); string reversedFirstName = ReverseString(firstName); string reversedLastName = ReverseString(lastName); string reversedCity = ReverseString(city); Console.WriteLine(reversedFirstName, reversedLastName, reversedCity );
image.png
Was this page helpful?