+ 2
Hex Color Code Generator
https://code.sololearn.com/cfHR8GGFK5ce maybe there is an easier solution than mine?
2 Respostas
+ 2
Yes. In C#, there is a built-in method for formatted strings to display hex.
int[] a = new int[3];
for(int i = 0; i < 3; ++i)
{
a[i] = Int32.Parse(Console.ReadLine());
}
Console.Write(quot;#{a[0]:x}{a[1]:x}{a[2]:x}");
0
CarrieForle,
Cool! Thank you