Driver code
public static void Main ( string [ ] args ) { int R = 0 , G = 0 , B = 0 ; Console . Write ( convertRGBtoHex ( R , G , B ) + " STRNEWLINE " ) ; R = 255 ; G = 255 ; B = 255 ; Console . Write ( convertRGBtoHex ( R , G , B ) + " STRNEWLINE " ) ; R = 25 ; G = 56 ; B = 123 ; Console . Write ( convertRGBtoHex ( R , G , B ) + " STRNEWLINE " ) ; R = 2 ; G = 3 ; B = 4 ; Console . Write ( convertRGBtoHex ( R , G , B ) + " STRNEWLINE " ) ; R = 255 ; G = 255 ; B = 256 ; Console . Write ( convertRGBtoHex ( R , G , B ) + " STRNEWLINE " ) ; } }