# C Programming Code Examples

## C > Pyramid Patterns Code Examples

### program to Calculate 1 + 2 + 3 + 4 + 5 + ... + n series

C++ Program Implement Stack by Linked -
C++ program, "using iteration", implements the list of elements removed from the stack in last in first out mode using a linked list. A linked list is an ordered set of data elements,

Transitive Closure by Warshall's algorithm -
Finding the transitive closure using Warshall's Algorithm. The Transitive Closure of a binary relation R on a set X is the 'transitive relation' R+ on set X such that R+ contains R and R+ is

C Program Find ASCII value of a Character -
ASCII value represents the english characters as numbers, each letter is assigned a number from 0 to 127. For example, the ASCII value for uppercase X is 88. This program takes the

Coding find Maximum Minimum Element -
Code to enter elements in an array from user and find maximum and minimum elements in array. C program to find biggest and smallest elements in an array. Input element in array...

Use Infinite While Loops in C++ Language -
This Loop would never end as 'decrementing' the value of i which is 1 so the condition i<=6 would never return false. A "While Loop" that never stops is said to be "Infinite While Loop",

Find an Input Substring in an input main -
C Programming example code to find an input substring in an input main string. The given sub-string is present in the main string. The given sub-string is not present in the...

Check Prime, Armstrong, Perfect Number -
C First give a meaningful name to our prime checking function say isPrime() function will check a number for prime. Since our function checks a number for prime condition. Hence

Program Prints Natural Numbers in Range -
Using above logic you can easily find a way to print natural numbers in range. If not here is a hint. Input start limit from user and store it in some variable say start. Input end limit from