1. Course
  2. Data types B
  3. Convert integer to binary and hexadecimal

Convert integer to binary and hexadecimal


Last updated: 8/23/2020 Difficulty: Intermediate

Create a program in C# that asks the user for an integer (x) and displays it in hexadecimal and binary.

Must be repeated until the user enters a 0.

Input

25
0

Output

19
11001

Solution

Data types B

5 / 7

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Advertising