# JavaScript Programming

## JavaScript > Scripting Language Code Examples

Page 1 Page 72 Page 73

Page 1 Page 72 Page 73

C Find Sum of N Numbers using Recursion

C Program using recursion displays the first N 'natural number' on the terminal. User enters the Nth number as the input, C program then displays integral number starting from 1 up to

C Implement Binary Tree using Linked List

Program implements binary tree using linked list. Binary Search tree is binary tree in which each Internal Node x stores an element such that the element stored in the left subtree of

Programming Code Define Array & Use it

Array storing 18 values, number of values to be read, sum of the numbers, average of the numbers, loop counter, read the ten numbers to be averaged, read a number, add it to sum

C++ Language Implements Binomial Heap

Linking nodes in binomial heap. Create nodes in binomial heap and Insert nodes in binomial heap. Union nodes in "Binomial Heap". Merge nodes in binomial heap. And display binomial

C program to input any String from user and find the Last occurrence of a given character in the string. Input String from user, 'Store it' in some variable say 'str'. Declare a index =-1

C Sample Code Prints the Pascal's Triangle

Pascal's triangle is one of the classic example taught to "engineering students". It has many interpretations. One of the famous one is its use with bionomial equations. The triangle is

C++ Displays such a Pattern for n Number

C++ Program to display 'such a Pattern'. Each row will contain odd numbers of number. The first and last number of each row will be 1 and middle column will be the "row number". So n

Finds the Number of Elements in an Array

Formula that we are using to find the number of elements is common for all types of array. In this example, we have an array of double data type, however you can use the same...