How to convert integer to hexadecimal in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        int n = 14;

        Console.WriteLine(Convert.ToString(n, 16));
    }
}



/*
run:

e

*/

 



answered Jul 23, 2020 by avibootz

Related questions

1 answer 143 views
1 answer 123 views
123 views asked Jul 24, 2022 by avibootz
1 answer 131 views
131 views asked Aug 25, 2021 by avibootz
1 answer 150 views
150 views asked Aug 25, 2021 by avibootz
1 answer 177 views
2 answers 175 views
8 answers 854 views
...