A simple command-line currency conversion application built using C programming.
Currency Converter is a beginner-friendly console application that allows users to convert amounts between different international currencies. The project focuses on implementing real-world logic using C concepts such as user input handling, validation, conditional statements, and structured programming.
The application provides a simple terminal-based experience where users can select their source currency, enter an amount, choose a target currency, and receive the converted value instantly.
Supports conversion between:
- ๐ฎ๐ณ Indian Rupee (INR)
- ๐บ๐ธ US Dollar (USD)
- ๐ฉ๐ช Euro (EUR)
- ๐ฌ๐ง British Pound (GBP)
- ๐ฏ๐ต Japanese Yen (JPY)
The program handles:
- Invalid country names
- Incorrect amount values
- Invalid conversion choices
- Same currency conversion attempts
Users can:
- Enter their current currency
- Provide conversion amount
- Select target currency
- View converted result
The project demonstrates clean implementation of:
- Variables
- Conditions
- Loops
- String handling
- User input processing
| Technology | Purpose |
|---|---|
| C Programming | Core application development |
| GCC Compiler | Compiling and running the program |
| stdio.h | Input and output operations |
| string.h | String comparison and handling |
| ctype.h | Character conversion and validation |
| Category | Details |
|---|---|
| Project Type | Console Application |
| Programming Language | C |
| Interface | Command Line |
| Data Handling | User Input Based |
| Purpose | Currency Conversion Practice |
User Input
โ
Currency Selection
โ
Amount Validation
โ
Conversion Calculation
โ
Converted Result Display
The program uses predefined conversion rates and performs calculations based on the selected currencies.
Currency-Converter-C/
โ
โโโ currency_converter.c
โ
โโโ README.md
git clone https://github.com/your-username/currency-converter-c.gitcd currency-converter-cgcc currency_converter.c -o currency_converterWindows:
currency_converter.exeLinux / macOS:
./currency_converterThis project helped in understanding:
- C programming fundamentals
- Conditional statements
- Loops
- String functions
- Input validation
- Logical problem solving
- Console application development
Possible improvements:
- Add live exchange rate API support
- Add more international currencies
- Create a graphical user interface
- Store conversion history
- Improve calculation accuracy
This project is licensed under the MIT License.
Created and maintained by Divyesh Modhvadiya
Made with โค๏ธ using C Programming