Data Type Conversion in C#
This is a simple console application written in C# that converts between different data types, such as string to int, string to double, double to int, and int to double.
- Convert
stringtoint - Convert
stringtodouble - Convert
doubletoint - Convert
inttodouble
-
Clone the Repository:
git clone https://github.com/Csyntax/DataTypeConversion.git
-
Navigate to the Project Directory:
cd DataTypeConversion
-
Build the Project:
dotnet build
-
Run the Application:
dotnet run
-
Upon running the application, you will be presented with a menu of conversion options.
-
Enter the number corresponding to the conversion you want to perform.
-
Follow the prompts to enter the values you wish to convert.
-
The program will display the converted values.
Data Type Conversion Program
- Convert string to int
- Convert string to double
- Convert double to int
- Convert int to double
- Exit
Choose an option (1-5): 1 Enter a string to convert to int: 123 Converted value: 123