fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main() => WriteLine(new Cores(80, 20, 160));
  5. }
  6.  
  7. struct Cores {
  8. public byte R { get; }
  9. public byte G { get; }
  10. public byte B { get; }
  11.  
  12. public Cores(byte r, byte g, byte b) {
  13. R = r;
  14. G = g;
  15. B = b;
  16. }
  17. public override string ToString() => $"{R}, {G}, {B}";
  18. }
  19.  
  20. //https://pt.stackoverflow.com/q/236022/101
Success #stdin #stdout 0.02s 15952KB
stdin
Standard input is empty
stdout
80, 20, 160