# C++ Programming Code Examples

## C++ > Mathematics Code Examples

### Print Fibonacci Series

Program Code to Selection Sort Algorithm -
The 'smallest element' is exchanged with the first element of the unsorted list of elements. The "second smallest element" is Exchanged with the 'second element' of the unsorted list

C++ Program to Implement Insertion Sort -
Insertion sort algorithm sort data by inserting them one by one into the List. This algorithm is based on sorting playing cards by picking & inserting them one by one. Here we take data

C Program Implement BogoSort in Integer -
C Code to check if the "array is sorted" or not. Shuffle the "Array Elements" and check if the array is sorted or not & if not sorted calls the shuffle function to shuffle the array elements

C Convert a Time value to and from UTC -
Status epilepticus, print help. Extract UTC time from string. Convert UTC to time string. Print help and exit. Convert INT utc value to timestring. Convert STR to INT utc time...

Check a Number can be Expressed as Sum -
Program to check whether a number can be expressed as sum of two prime numbers. To accomplish this task, "checkPrime()" function is created. The "checkPrime()" returns 1 if the

Program Find Duplicate Elements in Array -
Array is the collection of similar data type, In this c++ program we find duplicate elements from an array, Suppose array have 3, 5, 6, 11, 5 and 7 elements, in this array 5 appear two

C++ Codings Shutdown Computer System -
To shutdown and restart you computer using C++, just call the function system() of stdlib.h library which will call the cmd or terminal. So to shutdown and 'restart your computer', just

Checking Singly Linked List is Palindrome -
C Program checks whether the Singly Linked list is a palindrome. A Palindrome is a Pattern in List in which the contents when read from front is the same as when read from last. So