 # JavaScript Programming

## JavaScript > Code Examples

### A Document with Anchors

Code to find Sum of Digits using recursion - Write a Recursive Function in C Language to calculate sum of digits of a number. Declare Recursive Function to find sum of digits of a number. First give a meaningful name to the

C++ Multiply Two Matrices use 2D Arrays - C++ Code is very simple it takes input in two 2D arrays each with size of 2X2. After taking the input program "multiply two matrix" in 3 nested for loops. Size of arrays is defined use

C Codes Sort Even Odd Elements of Array - C program to input elements in an array from user and sort all even and odd elements of the given array separately without using any other array. If minimum element of the array

Program Code to Reverse a Stack without - C program, using iteration, reverses a stack content. Stack here is represented using a linked list. A linked list is an ordered set of data elements, each containing a link to its

Program to Pick and Print a random value - Picks a random value withing range low-high. Value returned seeds the rand() function. Print version information and exit. First seed the random function. Add line, to the array...

Program to Implement Sorted Linked List - Program demonstrates the implementation of Sorted linked list to Balanced BST. Counts the number of nodes in linked list. Construct balanced BST and returns root of it. Returns

C++ program to find LCM of two numbers - To find the LCM of 2 or more numbers, make "Multiple of Numbers" and Choose Common multiple. Then take lowest common multiple, lowest common multiple is 'LCM' of numbers.

Sum of each Row and Columns of a matrix - C program to read elements in a matrix and find the sum of elements of each row and columns of matrix. C program to calculate sum of rows and columns of matrix. Input...