Hex Color Code Generator | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponses
+ 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