This repository contains concise solutions to C programming exercises covering input/output, conditionals, loops, and file handling. Each task focuses on reinforcing basic C programming skills.
Read two characters, a float, and an integer from the user in a single line, then output each on a separate line.
Enter two characters, a space, a float, and a decimal:
Hi 3.141516 54
Hi
3.141516
54Evaluate if statements based on variable conditions and determine the value of a.
- `if (b > c)` → **False**
- `if ((e / d) + 6)` → **True**
- `if (a -= ((b > c) || (e / d)) + 6)` → **True**, `a = 25`Determine the letter grade based on numeric input using if-else logic.
Please enter the numeric grade: 85
The letter grade is a B.Print x from 0 to 9 using a for loop.
x=0
x=1
...
x=9- Print the first 20 even numbers in ascending order.
- Print odd numbers between 50 and 20 in descending order.
Continuously add user-entered numbers, terminating when -1 is input.
Current Sum: 0
Please enter the next number: 5
Current Sum: 5
...
Please enter the next number: -1
Done!These exercises reinforce C fundamentals through practical applications, including input handling, loops, and control structures.