# C++ Programming Code Examples

## C++ > Pyramid Patterns Code Examples

### Simple C++ Program for Print Inverted Triangle Pattern

C++ Program Sample Implements Vector -
'Insert element' into the vector. Deleting last element of the vector. Size of the vector and Display by index. "Dislplay by iterator". Clear the vector. Enter value to be inserted. Display

Reverse Counting program in C Language -
C Program reverse counting is sequence of whole numbers in descending order without zero. Developing a program of counting in C programming language is easy and we shall

C programming A Power Calculator Code -
This C code will calculate the power in watts when you input the voltage and current. Get the voltage. Enter the voltage in volts. Get the current. Enter current in amps. Calculate

Find Fibonacci Series Understanding Logic -
The Fibonacci series is infinite but we can not make a C++ program that display an "infinite" output. In program, we take input the "range" in integer upto which Fibonacci series will be

C++ Implement Stack using Two Queues -
This C++ program implements a "stack data" structure using two queue data structures. A stack data structure foolows the principle of LIFO(last element in first element out). Enter

Finding Last Occurrence of Word in String -
Logic to Search 'Last Occurrence' of a word is almost similar to searching first occurrence of a word in string. Just with last occurrence of a word do not terminate loop if first occurrence

Code Prints the Factorial of given Number -
C code Print the 'Factorial' of a given number. A factorial is product of all the numbers from 1 to n, where n is the 'specified number'. This C program find the product of all the number

C Program Reverse a String Use Recursion -
Program reverse the string 'Using Recursion'. C program uses recursive function & reverses the string in the same 'Memory Location'. Eg 'Superman8' will be reversed to '8namrepuS'