Programs for Practice
Programs for Practice
1. Simple C Questions
● Area and Circumference of a Circle
● Area of Triangle
● Simple Interest
● Percentage of 5 Subjects
● Read Integer (N) and Print the First Three Powers (N^1, N^2, N^3)
● Area of a Circle
2. If/Else Statement
● The Greatest Number Among the Given Three Numbers
● Leap Year
● Input any character and check whether it is the alphabet, digit or special
character.
● Input the month number and print the number of days in that month.
● Input the angles of a triangle and check whether the triangle is valid or
not.
● Input all sides of a triangle and check whether the triangle is valid or not.
3. Loops
● Reverse a Number
● Denomination of an Amount
4. Switch Case
● Temperature Conversion Celsius To Fahrenheit And Vice Versa
● Calculator
Switch Case)
● Find the maximum between two numbers using the switch case.
● Right-rotate an array.
6. Matrix Questions
● Add two matrices.
● Identity matrix in C.
● Recommended posts
9. Function Questions
● Cube of any number using the function.
functions.
● Find all prime numbers between the given interval using functions.
● Print all strong numbers between the given interval using functions.
● Print all perfect numbers between the given interval using functions.
● Find the sum of all even or odd numbers in a given range using recursion.
● Read numbers from a file and write even, odd and prime numbers to
separate files.
file.
12. Sorting
● Bubble Sort in C
● Shell Sort in C
● Merge Sort in C
● Heap Sort in C
● Selection Sort in C
● Insertion Sort in C
13. Searching
● Binary Search in C
● Linear Search in C