Closed frankcollins3 closed 1 year ago
➜ TestProject git:(master) ✗ dotnet run
A 360 flip is technically 2: pop shuvits and a kickflip
pad this
pad this
➜ TestProject git:(master) ✗
expected output: ---------------pad this
👎 my example. when adding the second arg it's not supposed to have the parenthesis Console.WriteLine(input.PadLeft(11); Console.WriteLine(input.PadLeft(33), '-'); // Console.WriteLine(input.PadLeft(33), '-');
👍 microsoft example with both arguments in the parenthesis: // Console.WriteLine(input.PadLeft(12, '-')); // Console.WriteLine(input.PadRight(12, '-')); [11:41pm]
attempting to do:
error:
proposed approach: use dashes, as the microsoft provided example does.
possible improvements: