15 Replies
the variables on the last line arent being printed out, its just blank, why?
because this isnt javascript
thats not how
Console.WriteLine
workshow would i output these variables?
use string interpolation
with the $ sign?
and the {}
?
$"> {fizz} {buzz}..."
yeaohhhh
i see
ok thanks again!!
the overload you used is
public static void WriteLine (string format, params object?[]? arg);
it expects a format string as the first argument, with placeholdersi see
generally its preferred to just use string interpolation, and let the compiler decide what to do instead
Can I ask a question here?
i knew it wanted string as the first one hence the ">" first. i swear its worked before
but ok thank you again!
make your own thread, or ask in #help-0
!close
Closed!