[Homework] C# Basics - Primitive Data Types and Variables - Problem {3} - Variable in Hexadecimal Format
Привет колеги!
Не успях да разбера условието на тази задача може ли малко пояснение.
Declare an integer variable and assign it with the value 254 in hexadecimal format (0x##). Use Windows Calculator to find its hexadecimal representation. Print the variable and ensure that the result is “254”. ?
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;
namespace ConsoleApplication5{ class ConvertedToHexadecimalFormat { private static object[] numberInHex; static void Main(string[] args) { int a = 0xFE; Console.WriteLine("{0}", numberInHex); Console.WriteLine("Variable in Hexadecimal Format {0}", a); } }}