Please visit our C Programming section to learn C Programming Language with examples.

## Simple C Programming Examples

- Hello World
- Add Two Numbers
- Compound Interest
- Cube of a Number
- Even or Odd
- Even Numbers from 1 to N
- Largest of Two Numbers
- Largest of Three Numbers
- Multiplication Table
- Number is Divisible by 5 and 11
- Odd Numbers from 1 to N
- Print an Integer, Character, and Float Value
- Positive or Negative Number
- Power of a Number
- Print 1 to 100 without using Loop
- Profit or Loss
- Roots of a Quadratic Equation
- Simple Interest
- Standard Deviation
- Sum of Even and Odd numbers in a Given Range
- Square of a Number
- Square root of a Number
- Sum of Even Numbers from 1 to n
- Sum of Odd Numbers from 1 to n
- Student Grade
- Total, Average, and Percentage of Five Subjects

## C Programming Examples on Numbers

- Armstrong Number
- ASCII Value of Single Character
- ASCII Values of all Characters
- Count Number of Digits in a Number
- Check the Number is a Prime, Armstrong, or Perfect Number
- Calculate Electricity Bill
- Factors of a Number
- Factorial of a Given Number
- First Digit of Number
- First and Last Digit of a Number
- GCD of Two Numbers
- Generic Root of a Number
- Gross Salary of an Employee
- Last Digit of Number
- LCM of Two Numbers
- Natural Numbers from 1 to N
- Natural Numbers in Reverse Order
- Palindrome or Not
- Perfect Number or Not
- Prime Number
- Prime Numbers from 1 to 100
- Product of Digits of a Number
- Prime Factors of a Number
- Reverse a Number
- Swap Two Numbers
- Sum of First and Last Digit of a Number
- Swap First and Last Digit of a Number
- Sum of N Natural Numbers
- Sum and Average of N Numbers
- Strong Number
- Sum of Digits in a Given Number
- Simple Calculator
- Total Notes in a Given Amount

## Calendar Programs

## Conversion Programs

Following are the list of program to Convert

- Centimeter to Meter and Kilometer
- Celsius to Fahrenheit
- Fahrenheit to Celsius
- Kilometer to Meter Centimeter and Millimeter

## String Programs

C Program to Check whether the Character is

- Alphabet or Not
- Alphabet or Digit
- Digit or Not
- Digit or Alphabet or Special Character
- Lowercase or Not
- Lowercase or Uppercase Alphabet
- Uppercase or Not
- Convert Character to Uppercase
- Convert Character to Lowercase
- Vowel or Consonant
- Length of a String
- Print Alphabets from a to z
- Print Alphabets between A and Z

## Area Programs

Following are the list of Area programs

- Area of a Circle
- Diameter, Circumference, and Area of a Circle
- Area of a Triangle
- Area of a Triangle using Base and Height
- Angle of a Triangle if two angles are given
- Triangle is Equilateral Isosceles or Scalene
- Use Angles to check Triangle is valid or Not
- Use Sides to check Triangle is Valid or Not
- Area of Rectangle
- Area of a Rectangle using Length and Width
- Perimeter of a Rectangle using Length and Width
- Area of a Trapezoid
- Area of a Right Angled Triangle
- Find Area of an Equilateral Triangle

## Volume and Surface Area Programs

Following are the list of Volume and Surface Area programs

- Volume and Surface Area of Sphere
- Volume and Surface Area of a Cylinder
- Find Volume and Surface Area of a Cube
- Volume and Surface Area of a Cuboid
- Volume and Surface Area of a Cone

## Array Programs in C

- Arithmetic Operations on One Dimensional Array
- Count Even and Odd Numbers in an Array
- Count Positive and Negative Numbers in an Array
- Copy an Array to another
- Delete an Element in an Array
- Insert an Element into an Array
- Largest Number in an Array
- Largest and Smallest Number in an Array
- Print Elements in an Array
- Put Even and Odd Numbers in two Separate Arrays
- Put Positive and Negative Numbers in two Separate Arrays
- Print Negative Numbers in an Array
- Print Positive Numbers in an Array
- Reverse an Array
- Smallest Number in an Array
- Sort Array in Ascending Order
- Sort Array in Descending Order
- Sum of all Elements in an Array
- Sum of Even and Odd Numbers in an Array
- Swap Two Arrays Without Using Temp Variable

## Matrix Programs

- Arithmetic Operations on Multi-Dimensional Arrays
- Add two Matrices
- Check Two Matrices are Equal or Not
- Scalar Multiplication of a Matrix
- Sum of Diagonal Elements in a Matrix
- Sum of each and every Row and Column in a Matrix
- Subtract Two Matrices
- Sum of Opposite Diagonal Elements in a Matrix
- Transpose a Matrix

## Pointers Programs

## C Programs to print Series

- Fibonacci Series Program
- Find Nth Fibonacci Number
- Sum of series 1²+2²+3²+….+n²
- Sum of series 1³+2³+3³+….+n³

## C Programs to display Patterns and Shapes

The following are the list of programs to Print

- Exponentially Increasing Star Pattern
- Floyd’s Triangle
- Hollow Square Star Pattern
- Hollow Rectangle Star Pattern
- Inverted Right Triangle Star Pattern
- Inverted Pyramid Star Pattern
- Mirrored Right Triangle Star Pattern
- Pascal Triangle
- Rectangle Star Pattern
- Right Angled Triangle Star Pattern
- Reversed Mirrored Right Triangle
- Square Star Pattern
- Star Pyramid Pattern

Thank You for Visiting Our Blog

## Share your Feedback, or Code!!