+ 2

Hex Color Code Generator

https://code.sololearn.com/cfHR8GGFK5ce maybe there is an easier solution than mine?

8th Nov 2021, 1:16 PM
Š Š¾Š¼Š°Š½ Š–ŠøŠ³ŃƒŠ½Š¾Š²
Š Š¾Š¼Š°Š½ Š–ŠøŠ³ŃƒŠ½Š¾Š² - avatar
2 Answers
+ 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}");
8th Nov 2021, 1:34 PM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
0
CarrieForle, Cool! Thank you
8th Nov 2021, 2:00 PM
Š Š¾Š¼Š°Š½ Š–ŠøŠ³ŃƒŠ½Š¾Š²
Š Š¾Š¼Š°Š½ Š–ŠøŠ³ŃƒŠ½Š¾Š² - avatar