Skip to content

Csyntax/DataTypeConversion

Repository files navigation

DataTypeConversion

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.

Features

  • Convert string to int
  • Convert string to double
  • Convert double to int
  • Convert int to double

How to Use

  1. Clone the Repository:

    git clone https://github.com/Csyntax/DataTypeConversion.git
  2. Navigate to the Project Directory:

    cd DataTypeConversion

  3. Build the Project:

    dotnet build

  4. Run the Application:

    dotnet run

Instructions

  • 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.

Example Usage

Data Type Conversion Program

  1. Convert string to int
  2. Convert string to double
  3. Convert double to int
  4. Convert int to double
  5. Exit

Choose an option (1-5): 1 Enter a string to convert to int: 123 Converted value: 123

About

Data Type Conversion in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages