Skip to content

Collection of my C programming projects from college, including practice exercises, mini-projects, and assignments.

Notifications You must be signed in to change notification settings

NOTE46/C-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Project 01: Compare Two Numbers

This is a simple C program that takes two integers as input and compares them.

The program:

  • Prompts the user to enter two integers (x and y).
  • Validates the input to ensure they are integers.
  • Compares the two numbers and prints:
    • "X is greater than Y" if x > y
    • "X is smaller than Y" if x < y
    • "X is equal to Y" if x == y

C Project 02: Simple Calculator in C

This is a basic calculator program written in C that can perform simple arithmetic operations:

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)

The program takes two operands and an operator from the user and outputs the result. It also handles division by zero gracefully.


C Project 3: Temperature Converter

A simple C program to convert temperatures between Celsius, Fahrenheit, and Kelvin. Supports conversions in both directions, validates user input, and allows uppercase or lowercase keys (C/c, F/f, K/k).

Features:

  • Fahrenheit ↔ Celsius
  • Kelvin ↔ Celsius
  • Celsius ↔ Kelvin
  • Kelvin ↔ Fahrenheit
  • Input validation with re-entry on invalid input
  • Case-insensitive selection (C/c, F/f, K/k)
  • User-friendly menu-driven interface
  • Handles decimal inputs for precise temperature values
  • Step-by-step prompts guide the user through conversions

C Project 4: Currency Converter

A simple C program to convert between Indian Rupees (INR) and US Dollars (USD).
Supports conversions in both directions and validates user input.

Features:

  • Convert Rupees → Dollars
  • Convert Dollars → Rupees
  • Handles decimal amounts
  • Input validation with re-entry on invalid key
  • User-friendly prompts and formatted output

C Project 5: Distance Converter Project

Description

This is a C language program that allows the user to convert distances between different units.
It supports conversion between:

  • Kilometer (km)
  • Meter (m)
  • Centimeter (cm)
  • Miles (mi)
  • Inches (in)
  • Feet (ft)

The program is interactive and allows the user to perform multiple conversions without restarting.

Features

  • Converts any distance from one unit to another.
  • Input validation to prevent incorrect entries.
  • Option to continue converting multiple distances in the same run.
  • Clear menu for selecting input and output units.

About

Collection of my C programming projects from college, including practice exercises, mini-projects, and assignments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages