# Visual Basic Programming Code Examples

## Visual Basic > Code Snippets Code Examples

### Directory exists

C++ Sample Programs Reversing Number -
To reverse a number in C++, then you have to ask to the user to enter a number. Now, start reversing that number to find its reverse and then display its reverse on the screen. Make a

Code Finds the Median of 2 Sorted Arrays -
Algorithm finds the median of 2 sorted arrays using binary search approach. Takes the input of 'n' Data Elements of both the arrays. Using decrease, conquer method find the combined

Create Linked List & Display the Elements -
C Program create a Linked List & display the elements in the list. Linked list is an ordered set of Data Elements, each containing a link to its successor. This Program is to create a

C Code Print all Even numbers from 1 to N -
C Language program print all even numbers from 1 to n using for loop. So first let us talk about the easiest way to print even numbers. If I ask you to list all even numbers from 1 to

Collection of Sorting & Selection Routines -
Shellsort, using Shell's (poor) increments. An Internal method for heapsort. i is the index of an item in the heap. Returns the index of the left child. Internal method for heapsort that is

C Language Finding the Sum of H.P Series -
This C program is used to find the sum of the 'Harmonic Progression Series'. H.P stands for harmonic progression. Harmonic progression is a progression formed by taking reciprocals

C++ Program Find the Mode in a Data Set -
In C++ language, The mode is the maximum of the "count of occurrence" of the different data element. This algorithm is beneficial for large dataset with high repetition frequency

Finds the Frequency of the Word in String -
Take any Sentence as input and store it in the array 'string[]'. If the input string has 't', 'h', 'e' and ' ' Consecutively, then store that values in the variables 't, h, e & space' respectively. Use