Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace P14_IntToHexAndBinary
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- Console.WriteLine(Convert.ToString(n, 16).ToUpper());
- Console.WriteLine(Convert.ToString(n, 2));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment