Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- class HexadecimalToDecimal
- {
- static void Main()
- {
- Console.Write("Enter you hexadecimal value: ");
- string hexa = Console.ReadLine();
- long dec = long.Parse(hexa, NumberStyles.HexNumber);
- Console.WriteLine(dec);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement