# C++ Programming Code Examples

## C++ > For Loops and While Loops Code Examples

### Multiplication Table (Values) Using For Loop

C programming code right rotate an array -
C code to right rotate an array by n position. How to right rotate an array n times in C. Logic to rotate an array to right by n position in C program. Read elements in an array say

Program convert UpperCase to LowerCase -
C Programming code to convert upper case to lower case or lower case to upper case depending on the name it is invoked with as found in argument. Enter a string in upper...

C Program Codes Calculates Electricity Bill -
Program to find electricity bill using if else in C. Input unit consumed by customer in some variable say unit and if unit consumed less or equal to 50 units. Then amt = unit * 0.50. Unit

Undirected Graph contains a Eulerian Path -
Check if this graph is Eulerian or not. Check if all non-zero degree vertices are connected. If graph has no "odd degree vertex", there is at least one Eulerian Circuit. And if graph as two

Undirected Graph Contain a Eulerian Cycle -
C++ Program to check whether an undirected graph contains "Eulerian Cycle". The criteran Euler suggested, If graph has no odd degree vertex, there is at least one eulerian circuit. If

Code Find Largest of Three input numbers -
C program to will prompt user to input three integer numbers and based on the input, it would compare and display greatest number as output. In this program number1, number2

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

Check Whether a Directed Graph Contains -
If graph has no "Odd Degree Vertex", there is at least one "Eulerian Circuit". If graph as two vertices with odd degree, there is no Eulerian Circuit but at least one Eulerian Path. If graph