Skip to content

Latest commit

ย 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฑ Currency Converter in C

C GCC Console App License MIT

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.


โœจ Features

๐ŸŒ Multiple Currency Support

Supports conversion between:

  • ๐Ÿ‡ฎ๐Ÿ‡ณ Indian Rupee (INR)
  • ๐Ÿ‡บ๐Ÿ‡ธ US Dollar (USD)
  • ๐Ÿ‡ฉ๐Ÿ‡ช Euro (EUR)
  • ๐Ÿ‡ฌ๐Ÿ‡ง British Pound (GBP)
  • ๐Ÿ‡ฏ๐Ÿ‡ต Japanese Yen (JPY)

โœ… Smart Input Validation

The program handles:

  • Invalid country names
  • Incorrect amount values
  • Invalid conversion choices
  • Same currency conversion attempts

๐Ÿ”„ Interactive Conversion

Users can:

  1. Enter their current currency
  2. Provide conversion amount
  3. Select target currency
  4. View converted result

๐Ÿงฉ Beginner-Friendly Structure

The project demonstrates clean implementation of:

  • Variables
  • Conditions
  • Loops
  • String handling
  • User input processing

๐Ÿงฐ Built With

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

๐Ÿ“Œ Project Information

Category Details
Project Type Console Application
Programming Language C
Interface Command Line
Data Handling User Input Based
Purpose Currency Conversion Practice

โš™๏ธ How It Works

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.


๐Ÿ“‚ Project Structure

Currency-Converter-C/

โ”‚
โ”œโ”€โ”€ currency_converter.c
โ”‚
โ””โ”€โ”€ README.md

โ–ถ๏ธ Installation & Usage

Clone Repository

git clone https://github.com/your-username/currency-converter-c.git

Open Project Folder

cd currency-converter-c

Compile Program

gcc currency_converter.c -o currency_converter

Run Application

Windows:

currency_converter.exe

Linux / macOS:

./currency_converter

๐Ÿง  Concepts Covered

This project helped in understanding:

  • C programming fundamentals
  • Conditional statements
  • Loops
  • String functions
  • Input validation
  • Logical problem solving
  • Console application development

๐Ÿš€ Future Improvements

Possible improvements:

  • Add live exchange rate API support
  • Add more international currencies
  • Create a graphical user interface
  • Store conversion history
  • Improve calculation accuracy

๐Ÿ“„ License

This project is licensed under the MIT License.


๐Ÿ‘จโ€๐Ÿ’ป Author

Created and maintained by Divyesh Modhvadiya

Made with โค๏ธ using C Programming

About

๐Ÿ’ฑ Currency Converter in C โ€“ A sleek console-based program that converts amounts between INR, USD, EUR, GBP, and JPY. Built with clean code, case-insensitive input, and robust validation, this project demonstrates real-world C programming concepts while being beginner-friendly and portfolio-ready.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages