# JavaScript Programming

## JavaScript > Code Examples

### An if..else if...else statement

C Program Sample Implement Bitonic Sort -
Compare and swap based on dir, sorts bitonic sequence in ascending order dir=1, otherwise in descending order. Code generates "Bitonic Sequence" by Sorting Recursively two halves

C++ program for Complex Numbers using -
Class for addition, subtraction, multiplication and division for 'complex numbers'. Class has 4 functions to perform arithmetic operations. It takes 2 "complex numbers" input from user

Random Numbers Probability Distribution -
Program to generate random numbers using Probability Distribution Function. Probability distribution is based on "Probability Density" function. a probability density function (pdf),

Open Read Write and Close operation in C -
C file operations: Open, read, write and close operation in C. The fclose( ) function is used for closing an opened file. As argument you must provide a pointer to the file that you...

C++ Implement Gift Wrapping Algorithm -
Implement Gift Wrapping algorithm to find convex hull in "Two Dimensional Space". In computational geometry, the gift wrapping algorithm is an algorithm for computing the

Compile Ttime Polymorphism in The C++ -
In this C++ example, we have two functions with "same name" but different number of arguments. Based on how many parameters we pass during Function call "Determines"

C++ Language Displaying Fibonacci Series -
The Fibonacci sequence is a series where the next term is the "sum of pervious two terms". The first two terms of the Fibonacci sequence is 0 followed by 1. Fibonacci Numbers: 0, 1, 1,

C Convert Octal to Hexadecimal Number -
C program to input octal number from user and convert to hexadecimal number system. Octal Number System is a base 8 number system. It uses 8 symbols to represent all its