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
andy
). - 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
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.
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
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
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.
- 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.