This repository contains solutions to 58 fundamental C programming problems covering various topics from basic conditionals to advanced pointer operations.
- Problem 1: Find largest and smallest of three numbers using if-else statements
- Problem 2: Check if number is even or odd using if-else statements
- Problem 3: Check if year is leap year using if-else statements
- Problem 4: Find second largest number using if-else statements
- Problem 5: Check whether triangle is equilateral, scalene or isosceles
- Problem 6: Check whether number is negative, positive or zero
- Problem 7: Check whether alphabet is vowel or consonant using switch case
- Problem 8: Print multiplication table using while loop
- Problem 9: Print Fibonacci series using for loop
- Problem 10: Check if number is prime using for loop
- Problem 11: Find factorial using while loop
- Problem 12: Print number series
- Problem 13: Print various patterns (triangle, pyramid, reversed triangle)
- Problem 14: Find sum of digits
- Problem 15: Find sum of array elements
- Problem 16: Store and print array elements
- Problem 17: Display array in reverse order
- Problem 18: Find maximum and minimum elements
- Problem 19: Count negative elements
- Problem 20: Find middle array index
- Problem 21: Copy array elements
- Problem 22: Count duplicate elements
- Problem 23: Count frequency of each element
- Problem 24: Find average of elements
- Problem 25: Sort array in ascending order
- Problem 26: Sort array in descending order
- Problem 27: Search for element in array
- Problem 28: Concatenate strings without strcat()
- Problem 29: Check if two strings are equal
- Problem 30: Reverse a string
- Problem 31: Count vowels in string
- Problem 32: Count words in string
- Problem 33: Find string length without strlen()
- Problem 34: Convert string to uppercase
- Problem 35: Convert string to lowercase
- Problem 36: Extract substring
- Problem 37: Remove spaces from string
- Problem 38: Replace character in string
- Problem 39: Sort strings alphabetically
- Problem 40: Check if string is palindrome
- Problem 41: Remove all occurrences of character
- Problem 42: Find cube using function
- Problem 43: Find max/min using functions
- Problem 44: Print numbers in range using function
- Problem 45: Find GCD using function
- Problem 46: Find LCM using function
- Problem 47: Calculate circle area using function
- Problem 48: Convert Celsius to Fahrenheit using function
- Problem 49: Find factorial using function
- Problem 50: Find power using recursion
- Problem 51: Sum of natural numbers using recursion
- Problem 52: Reverse number using recursion
- Problem 53: Generate nth Fibonacci term using recursion
- Problem 54: Swap two numbers using pointers
- Problem 55: Reverse string using pointers
- Problem 56: Find largest element using pointers
- Problem 57: Find smallest element using pointers
- Problem 58: Sort array using pointers
Happy Coding! 🚀