Checking for Palindrome Strings or Numbers in C Language

In this programming algorithm tutorial we will look at how to find out if a string or number is a palindrome or not. A palindrome is a word, phrase, number or other sequence of units that has the property of reading the same in either direction. A few examples of palindrome strings are: “madam”, “dad” and “radar”. More »


Posted in Programming Algorithms | 5 Comments


Linear Search Algorithm in C Language

In this programming algorithm tutorial we will at how we can do a linear search in C language. A linear search algorithm using numbers is very easy to implement. More »


Posted in Programming Algorithms | 2 Comments


Determining the Area of Different Shaped Triangles in C

In this C programming algorithm tutorial we are looking at how to implement the mathematical formulas to determine area of different shaped triangles. We will look at the triangle, right angled triangle and equilateral triangle. We will give you the formula, the C source code and the results. More »


Posted in Programming Algorithms | Comments Off on Determining the Area of Different Shaped Triangles in C


Area of a Rectangle Circle and Trapezium in C

In this C programming algorithm tutorial we are looking at how to implement the mathematical formulas to determine area of a rectangle, circle and trapezium. We will give you the formula, the C source code and the results. More »


Posted in Programming Algorithms | 2 Comments


How to Print Floyds Triangle in C

In this tutorial we will take a quick look at the Floyd’s triangle using the C language. The Floyd’s triangle (named after Robert Floyd) algorithm is a right-angled triangular array of natural numbers. It is defined by filling the rows of the triangle with consecutive numbers, starting with the number one in the top left corner. More »


Posted in Programming Algorithms | 10 Comments


Printing a Diamond Pattern in C

In this tutorial we are looking at how to print a diamond pattern using the C language. The diamond pattern algorithm question is often used in C courses, so it make sense that we also take a look at it. More »


Posted in Programming Algorithms | 9 Comments