fork(6) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. private static bool Flag = false;
  6.  
  7. static void Main(string[] args)
  8. {
  9. var foo = 34;
  10. var bar = 42;
  11.  
  12. Console.WriteLine($"Foo formatted as a currency to 4 decimal places is: {foo:c4}");
  13. }
  14. }
Success #stdin #stdout 0.04s 23848KB
stdin
Standard input is empty
stdout
Foo formatted as a currency to 4 decimal places is: $34.0000