# C++ Programming Code Examples

## C++ > Pyramid Patterns Code Examples

### Programs to display pyramid and inverted pyramid using * and digits

Find the Type of the Triangle made by i-p -
Program to find the type of the triangle made by i-p values of its coordinates of its vertices. Enter coordinates of vertex A, B, C. Triangle made by these vertices is an equilateral...

Program calculate & print the value of nCr -
In the following C program we are calculating & displaying the value of nCr. nCr can also be represented as C(n,r). C Language function is used to find the factorial of given number and

Code Get Highest Order Set Bit of Number -
Highest position of a set bit from left to right in a number is said to be highest order set bit of that number. Highest order set bit of any negative integers is 31. Since, highest order...

C Sort Structures on the basis of Structure -
Using cricket, declare an array player with 10 elements and write a c program to read the information about all the 10 players and print a team wise list containing names of players

C Programming Codings Checks Leap Year -
C Language program check leap year using if else. Wikipedia states Leap Year as a special year containing one extra day i.e. total 366 days in a year. A year is said to be leap year,...

Code Illustrate Reading of Data from Files -
Program to illustrates reading of data from a file. Program to opens a file which is present. Once the file opens successfully, it uses libc fgetc() library call to read the content. Code

Program Code Converts Decimal to Binary -
How to convert from decimal number system to binary number system in C programming. C program to convert from Decimal to Binary number system. Input decimal number from

C++ Code Find Largest of Three Numbers -
To find the largest number among the three numbers in C++, enter three numbers, now checking which one is the "largest number". After finding the largest number, we display