C Program Examples with Output for Practice

C Program Examples with Output for Practice

250+ C programs; In this tutorial, we will see basic to advanced level c programs with examples and output.

C Program Examples with Output for Practice

List of C Programs; as follows:

  • Simple C Programs
  • Number C Programs
  • Calendar Programs in C
  • Conversions Programs in C
  • Characters Programs in C
  • String Programs in C
  • Area Calculation Programs In C
  • Volume and Surface Area Programs In C
  • Arrays Programs In C
  • Matrix Programs In C
  • Sorting Algorithm Programs In C
  • Pointers Programs In C
  • Series Programs In C
  • Patterns and Shapes Programs In C
  • Alphabet Pattern Programs In C
  • Number Pattern Programs In C

Simple C Programs

  1. C Program to Print Hello World
  2. C Program to Add Two Numbers
  3. C Program to Find Average of 3, 5 Number
  4. C Program to Find the Absolute Value of a Number
  5. C Program to Calculate Simple Interest
  6. C program to find Compound Interest
  7. C program to Calculate Cube of a Number
  8. C Programs to check Number is Even or Odd
  9. C Program to Print Even Numbers from 1 to N
  10. C Program to find Largest of Two Numbers
  11. C Program to find Largest of Three Numbers
  12. C Program to print Multiplication Table
  13. C program to find Number is Divisible by 5 and 11
  14. C Programs for nCr Calculation
  15. C Programs for nPr Calculation
  16. C Program to print Odd Numbers from 1 to N
  17. C program to calculate Power of a Number
  18. C program to find Profit or Loss
  19. C Program to find the size of int, float, double, and char
  20. Positive or Negative Number
  21. Print 1 to 100 without using Loop
  22. C Program Find Roots of a Quadratic Equation
  23. C Program to Find Standard Deviation
  24. Sum of Even and Odd numbers in a Given Range
  25. Sum and Average of Three Numbers
  26. Square of a Number
  27. Square root of a Number
  28. C Program to Print First N Even Natural Numbers
  29. C Program to Print First N Natural Numbers in Reverse
  30. C Program to Print First N Odd Natural Numbers
  31. C Program to Read 10 Numbers and Find their Sum and Average
  32. C program to find sum and average of n numbers
  33. Sum of Even and Odd Numbers from 1 to n
  34. Student Grade
  35. Total, Average, and Percentage of Five Subjects
  36. C Program to Multiply Two Floating Point Numbers
  37. C Programs to find Quotient and Remainder
  38. C Programs to Find the Range of Data Types
  39. C program to Find the Distance Between Two Points
  40. C Program for Zip, Zap and Zoom game

Number C Programs

The list of advanced Number programs in C Programming language with multiple examples.

  1. C Programs to check the Number is Armstrong Number
  2. C programs to Count Number of Digits in a Number
  3. C program to Check Number is a Prime, Armstrong, or Perfect Number
  4. C program to Calculate Electricity Bill
  5. C Program to find Factors of a Number
  6. C Program to find Factorial of a Number
  7. C program to print First Digit of Number
  8. C program to print First and Last Digit of a Number
  9. C Program to Find GCD of Two Numbers
  10. C program to calculate Generic Root of a Number
  11. C program to find Gross Salary of an Employee
  12. C program to calculate LCM of Two Numbers
  13. C program to print Natural Numbers from 1 to N
  14. C program to print Natural Numbers in Reverse Order
  15. C program to check Neon Number
  16. C program to check Palindrome or Not
  17. C program to check Perfect Number or Not
  18. C Program to Check Whether a Number is Prime or Not
  19. C program to print Prime Numbers from 1 to 100
  20. C program to find Prime Factors of a Number
  21. C program to Reverse a Number
  22. C example to Swap Two Numbers
  23. C Program to Swap First and Last Digit of a Number
  24. C Program to find Sum of N Natural Numbers
  25. C program to check Strong Number
  26. C Program for Simple Calculator

Calendar Programs in C

  1. C Programs to find the Leap Year
  2. C program to find the Day Name of a Week
  3. C program to print Number of Days in a Month
  4. C Program to Find Number of Days in a Given Month and Year

Conversions Programs in C

The following are the list of C programs to Convert

  1. C Programs to Convert Binary to Decimal
  2. C Programs to Convert Binary to Octal
  3. C Program to Convert Centimeter to Meter and Kilometer
  4. C Program to Convert Kilometer to Meter Centimeter and Millimeter
  5. C Program to Convert Celsius to Fahrenheit
  6. C Program to Convert Decimal to Binary Number
  7. C Program to Convert Decimal to Octal Number
  8. C Program to Convert Fahrenheit to Celsius
  9. C Program To Convert Octal to Binary Number
  10. C Program To Convert Octal to Decimal

Characters Programs in C

Below programs are the C Programs to Check whether the Character is

  1. C Programs to find the ASCII Value of all Character
  2. C Program to check whether the Character is Alphabet or Not
  3. C Program to Check Character is Alphabet, Digit or Special Character
  4. C Program to Convert Lowercase Character to Uppercase Character
  5. C Program to Convert Character to Uppercase to Lowercase
  6. C Program to Check Vowel or Consonant

String Programs in C

The list of c programs on strings or character arrays.

  1. C Programs to find the ASCII Value of All Characters in a String
  2. C Program to find All Occurrence of a Character in a String
  3. C Program to Count Number of Words in a String
  4. C Program to Compare two Strings
  5. C Program To Concatenate Two Strings
  6. C Program To Copy One String To Another String
  7. C Program to Count Alphabets, Digits and Special Characters in a String
  8. C Program to Count Vowels, and Consonants in a String
  9. C Porgram to Count All Occurrence of a Character in a String
  10. C Program to Find First Occurrence of a Character in a String
  11. C Program to Find First Occurrence of a Word in a String
  12. C Program to Find Last Occurrence of a Character in a String
  13. C Program To Find Length Of A String
  14. C Program to Find Maximum Occurring Character in a string
  15. C Program to Find Minimum Occurring Character in a string
  16. C Program To Check A String Is Palindrome Or Not
  17. C Program to Remove First Occurrence of a Character in a String
  18. C Program To Remove Last Occurrence of a Character in a String
  19. C Program To Remove All Occurrences of a Character in a String
  20. C Program to Remove All Duplicate Characters in a String
  21. C Program to Remove All Characters in a String Except Alphabets
  22. C Program To Replace First Occurrence of a Character in a String
  23. C Program to Replace Last Occurrence of a Character in a String
  24. C Program to Replace All Occurrence of a Character in a String
  25. C Program to Reverse a String
  26. C Program to Reverse Order of Words in a String
  27. C program to Toggle Case of all Characters in a String
  28. C Program to Remove White Spaces from a String
  29. C program to Sort Names in Alphabetical Order

Area Calculation Programs In C

There are the following list of C programs on Area.

  1. C Programs to Find the Area of a Circle
  2. C Program to Find Diameter, Circumference, and Area of a Circle
  3. C Program to Find Area of Triangle
  4. C Program to Find Third Angle of a Triangle
  5. C Program to Check Triangle is Valid or Not using Angles
  6. C Program to Find Area of an Isosceles Triangle
  7. C Program To Find Area of Rectangle
  8. C Program to Find Area and Perimeter of a Rectangle
  9. C Program to Find Area of a Parallelogram
  10. C Program to find Area of a Trapezoid
  11. C Program to Calculate Area of Right angle Triangle
  12. C Program to find Area of an Equilateral Triangle
  13. C Program to Find Area of Rhombus
  14. C Program to Find Perimeter of Rhombus
  15. C Program to Find the Area of a Semicircle
  16. C Program to Find the Perimeter of a Square

Volume and Surface Area Programs In C

Following are the list of Volume and Surface Area C programs

  1. C Program to Find Volume and Surface Area of Sphere
  2. C Program to Find Volume and Surface Area of a Cylinder
  3. C Program to Find Volume and Surface Area of a Cube
  4. C Program to Find Volume and Surface Area of a Cuboid
  5. C Program to Find Volume and Surface Area of a Cone

Arrays Programs In C

The following are the c programming examples on Arrays

  1. C Programs to Perform Arithmetic Operations on One Dimensional Array
  2. C Program to find the Number of Elements in an Array
  3. C Program to Count Positive and Negative Numbers in an Array
  4. C Program to Copy an Array to another
  5. C Program to Find Sum and Average of an Array
  6. C Program to Count Occurrences of an Element in an Array
  7. C Program to Count Frequency of each Element in an Array
  8. C Program Count Number of Duplicate Elements in An Array
  9. C Program to Delete an Element in an Array
  10. C Program to Delete Duplicate Elements from an Array
  11. C Program to insert an Element in an Array
  12. C Program to Find Largest Number in an Array
  13. C Program to Find Largest and Smallest Number in an Array
  14. C Program To Merge Two Arrays
  15. C Program To Put Even And Odd Elements Of Array Into Two Separate Arrays
  16. C Program To Put Positive and Negative Numbers in two Separate Arrays
  17. C Program to Reverse an Array
  18. C Program To Search An Element In An Array
  19. C Program to Find Second largest Number in an Array
  20. C Program to Find Second Smallest Number in an Array
  21. C Program to Sort Array in Ascending Order
  22. C Program to Sort Array in Descending Order
  23. C Program to Sum of all Elements in an Array
  24. C Program to Sum of Even and Odd Numbers in an Array
  25. C Program to Swap Two Arrays Without Using Temp Variable
  26. C Program to Print Unique Elements in an Array
  27. C Program to Print the Kth Element in an Array
  28. C Program to Left Rotate Array Items
  29. C Program to Right Rotate Array Elements
  30. C Program To Find the Largest Element in a Row in 2d Array

Matrix Programs In C

  1. C Program to Add Two Matrices
  2. C Program to Check Two Matrices are Equal or Not
  3. C Program to Determinant of a Matrix
  4. C Program to Check if a given Matrix is an Identity Matrix
  5. C Program to Interchange Diagonals of a Matrix
  6. C Program to Find Lower Triangle Matrix
  7. C Program to Scalar Multiplication of a Matrix
  8. C Program to Check Matrix is a Sparse Matrix
  9. C Program to Find Sum of Diagonal Elements in a Matrix
  10. C Program to Find Sum of each and every Row and Column in a Matrix
  11. C Program to Find Sum each row in a Matrix
  12. C Program to Find Sum of each column in a Matrix
  13. C Program to Subtract Two Matrices
  14. C Program to Find Sum of Lower Triangle Matrix
  15. C Program to Sum of Opposite Diagonal Elements in a Matrix
  16. C Program to Check Symmetric Matrix
  17. C Program to find Sum of Upper Triangle Matrix
  18. C Program To Find the Transpose of a Matrix
  19. C Program to Find the Trace of a Matrix

Sorting Algorithm Programs In C

Pointers Programs In C

  1. C Program to Add Two Numbers using Pointers
  2. C Program to Swap Two Numbers using Pointer
  3. Create, Initialize, and Access a Pointer Variable
  4. Count Vowels and Consonants in a String using a Pointer
  5. Largest of Two Numbers using a Pointer
  6. C Program to Find Largest of Three Numbers using a Pointer
  7. Pass Pointers as the Function Arguments
  8. C Program to Print String using Pointer
  9. C Program to Read and Print Array Elements using a Pointer
  10. Sort an Array using a Pointer
  11. Sum and Average of Array Elements using a Pointer

Series Programs In C

  1. C Program to Display Fibonacci Series
  2. C Program to Find Nth Fibonacci Number
  3. C Program to Sum of Fibonacci Series
  4. C Program to Find Sum of series 1²+2²+3²+….+n²
  5. C Program to Find Sum of series 1³+2³+3³+….+n³
  6. C Program to Find Sum of Geometric Progression Series
  7. C Program to Find Sum of Arithmetic Progression Series

Patterns and Shapes Programs In C

The following are the list of C programs to Print patterns and shapes

  1. C Program to Print Christmas Tree Star Pattern
  2. C Program to Print Exponentially Increasing Star Pattern
  3. C Program to Print Floyd’s Triangle
  4. C Program to Print Diamond Star Pattern
  5. C Program to Print Half Diamond Star Pattern
  6. C Program to Print Mirrored Half Diamond Star Pattern
  7. C Program to Print Left Arrow Star Pattern
  8. C Program to Print Pascal Triangle
  9. C Program to Print Pyramid Star Pattern
  10. C Program to Print Hollow Pyramid Star
  11. C Program to Print Inverted Pyramid Star Pattern
  12. C Program to Print Hollow Inverted Star Pyramid
  13. C Program to Print Plus Star Pattern
  14. C Program to Rectangle Star Pattern
  15. C Program to Print Hollow Rectangle Star Pattern
  16. C Program to Print Right Arrow Star Pattern
  17. C Program to Print Right Angled Triangle Star Pattern
  18. C Program to Print Hollow Right Triangle Star Pattern
  19. C Program to Print Reversed Mirrored Right Triangle Star Pattern
  20. C Program to Print Hollow Mirrored Right Triangle Star Pattern
  21. C Program to Print Inverted Right Triangle Star Pattern
  22. C Program to Print Inverted Mirrored Right Triangle Star Pattern
  23. C Program to Print Rhombus Star Pattern
  24. C Program to Print Hollow Rhombus Star Pattern
  25. C Program to Print Mirrored Rhombus Star Pattern
  26. C Program to Print Hollow Mirrored Rhombus Star Pattern
  27. C Program to Print Square Star Pattern
  28. C Program to Print Hollow Square Star Pattern
  29. Hollow Square Pattern With Diagonals
  30. C Program to Print Hollow Sandglass Star Pattern
  31. C Program to Print H Star Pattern
  32. C Program to Print V Star Pattern
  33. C Program to Print Inverted V Star Pattern
  34. C programs to Print X Star Pattern
  35. C programs to Print 8 Star Pattern

Alphabet Pattern Programs In C

  1. C Program to Print Diamond Alphabets Pattern
  2. C Program to Print Downward Triangle Alphabets Pattern
  3. C Program to Print Downward Triangle Mirrored Alphabets Pattern
  4. C Program to Print Inverted Right Triangle Alphabets Pattern
  5. C Program to Print Inverted Triangle Alphabets Pattern
  6. C Program to Print K Shape Alphabets Pattern
  7. C Program to Print Left Arrow Alphabets Pattern
  8. C Program to Print Mirrored Right Triangle Alphabets Pattern
  9. C Program to Print Pyramid Alphabets Pattern
  10. C Program to Print Right Arrow Alphabets Pattern
  11. C Program to Print Right Pascals Triangle Alphabets Pattern
  12. C Program to Print Right Triangle Alphabets Pattern
  13. C Program to Print Right Triangle of Alphabets in Reverse
  14. C Program to Print Right Triangle Characters Pattern
  15. C Program to Print Right Triangle of Consecutive Alphabets Pattern
  16. C Program to Print Right Triangle of Same Alphabet in each Column
  17. C Program to Print Right Triangle of Mirrored Alphabets Pattern
  18. C Program to Print Right Triangle of Incremental Alphabets Pattern
  19. C Program to Print Sandglass Alphabets Pattern
  20. C Program to Print Triangle Alphabets Pattern
  21. C Program to Print Triangle of Alphabets in Reverse Pattern
  22. C Program to Print Triangle of Mirrored Alphabets Pattern

Number Pattern Programs In C

The following are the remaining number pattern C programming examples.

  1. C programs to Print Box Number Pattern of 1 and 0
  2. C Program to Print Inverted Right Triangle Number Pattern
  3. C Program to Print K Shape Number Pattern
  4. C Program to Print 1 and 0 in Alternative Rows
  5. C Program to Print 1 and 0 in Alternative Columns
  6. C Program to Print Left Arrow Numbers Pattern
  7. C Program to Print Pyramid Numbers Pattern
  8. C Program to Print Right Pascals Triangle of Multiplication Numbers Pattern
  9. C Program to Print Right Pascals Triangle of Mirrored Numbers Pattern
  10. C example to Print Right Triangle Number Pattern
  11. C Program to Print Consecutive Column Numbers in Right Triangle
  12. C Program to Print Consecutive Row Numbers in Right Triangle
  13. C program to print Pyramid pattern of numbers 1 to 10
  14. C Program to Print Right Triangle of Fibonacci Series Numbers Pattern
  15. C Program to Print Right Triangle of Numbers in Sine Wave Pattern
  16. C Program to print Square Number Pattern
  17. C Program to Print Square of Left Shift Numbers Pattern
  18. C Program to Print Square of Left Decrement Numbers Pattern
  19. C Program to Print Square of Right Increment Numbers Pattern
  20. C Program to Print Square With Diagonal Numbers Pattern
  21. C Program to Left Shift the Square Pattern of Odd Numbers
  22. C Program to Print Square of Right Decrement Numbers Pattern
  23. C Program to Print Square of Numbers in Sine Wave Pattern
  24. C program to Print Sandglass Number Pattern
  25. C Program to Print Triangle Numbers Pattern
  26. C Program to Print Triangle of Numbers in Reverse Pattern
  27. C program to Print Triangle of Mirrored Numbers Pattern
  28. C Program to Print V Numbers Pattern

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *