fork(18) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string colour = "#FFFC9684".TrimStart('#');
  8. string R = colour.Substring(2, 2);
  9. string G = colour.Substring(4, 2);
  10. string B = colour.Substring(6, 2);
  11. int decValue = int.Parse(B + G + R, System.Globalization.NumberStyles.HexNumber);
  12. Console.WriteLine(decValue);
  13. }
  14. }
Success #stdin #stdout 0.03s 33864KB
stdin
Standard input is empty
stdout
8689404