# C Programming Code Examples

## C > Pyramid Patterns Code Examples

### Top Down Right Triangle Printing In C

C Program code to Subtract two matrices -
C language read elements in two matrices and find the difference of two matrices. Subtract two matrices in C. Elements of two matrices can only be subtracted if and only...

C++ Language Hello World Program Code -
Simple C++ program to display "Hello, World" on the screen. Since, it's a simple program, it is often used to illustrate the syntax of a c++ programming language. Every C++ program

C Programming Nested If...Else Statement -
In programming if...else statement executes two different codes depending upon whether the test expression is true or false. Sometime a choice has to be made from more than two

C Calculate Difference Between Two Time -
C programming code to calculate difference between two time periods. In this program, user is asked to enter two time periods and these two periods are stored in structure...

Program Implement the Vizing's Theorem -
The chromatic index of the simple graph can be either 'maxDegree' or maxDegree+1. The chromatic index is the maximum number of color needed for the 'edge coloring' of graph.

Checks for Balanced Paranthesis by Stacks -
Program sample, using a stack data strucure, computing whether the given "Parantheses" expression is 'valid' or not by check whether each parentheses is closed and nested in the

Program Find the Average using Function -
C code to find the average using function. We have created user defined function average() for the calculation of average. The numbers entered by user are passed to this c function

C Convert Binary to Hexadecimal Number -
C Program to input binary number from user and convert to hexadecimal number system. Binary Number System is a base 2 number system. Binary number system use only two