# C++ Programming Code Examples

## C++ > Beginners Lab Assignments Code Examples

### Here are lists of signals along with their description and working capability:

Calculate Addition or Subtraction & Trace -
Calculate the addition or subtraction & trace of 2 matrices. Here trace of the matrix is the sum of the elements on the main diagonal i.e the diagonal from the upper left to the lower

Directed Graphs Contains a Eulerian Cycle -
If graph has no odd degree vertex, there is at least one Eulerian Circuit. And if graph as two vertices with odd degree, there is no Eulerian Circuit but at least one Eulerian Path. If graph

Find the Size of int, float, double and char -
In this c program, we are using the sizeof() operator to find the size of data types. When the sizeof is used with the primitive data types such as int, float, double and char then

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

C Program Prints All Odd Numbers 1 to N -
How to print Odd Numbers from 1 to N using loop in C programming. Input upper limit to print odd number from user. Store it in some variable N. Run a loop from 1 to N, increment

C Program Print Odd Numbers in a Range -
C program to print all odd numbers from 1 to n using for loop. Input lower and upper limit from user. If start is not odd then make it odd And Initialize loop from start, increment it by

Program to Displays Armstrong Numbers -
This program asks user to enter 'two integers' and displays all Armstrong numbers between the "given interval". If you don't know how to check whether a number is 'Armstrong' or not

C Armstrong Numbers Between 2 Integers -
Program Print Armstrong Numbers between two Integers. In case of an armstrong number of 3 digits, the Sum of Cubes of each digits is equal to the number itself. For example: 407