C++ Programming Code Examples
C++ > Conversions Code Examples
Convert Fahrenheit to Centigrade
C++ Find the HCF and LCF of 2 Numbers -
Enter the two number, to find the HCF and LCF of the given two number to display the value of the HCF and LCM of the 2 numbers on the output screen as shown here in code
C++ Code Find Smallest Element in Arrays -
Enter the array size and array elements, now start finding for the "smallest element" in the array to display the smallest element of the array as shown here in C++ sample program.
C Language Code Formula of Permutation -
Permutation refers number of ways in which set members can be Arranged or Ordered in some fashion. The 'Formula of Permutation' of arranging k elements out of n elements is
C Program Code to Catch pressing Ctrl+C -
Program example catches the Ctrl-C (SIGINT) signal for the first time and prints a output rather but exits on pressing ctrl-c again. You have presses Ctrl-C, please press again to exit
C Finds Cube of a Number using Function -
C Program code input any number from user and find cube of the a number using function. Lets assign meaningful name to the function, say cube(). Function should accept a number
C Program to find lower Triangular Matrix -
Read elements in a matrix and check whether the matrix is a lower triangular matrix or not. To find whether a matrix is lower triangular or not we need to check if all elements above...
Using Continue Statement Inside for Loop -
As you can see that the output is missing the value 3, however the for loop 'iterate' though the num value 0 to 6. This is because we have set a condition inside loop in such a way, that
C Coding to Perform Matrix Multiplication -
C program, using recursion, performs Matrix multiplication of two matrices and displays the result. Use 2D array to represent a matrix and resulting matrix is stored in a different...