# Visual Basic Programming Code Examples

## Visual Basic > Database SQL Stuff Code Examples

### Adding and Deleting DSNs

Convert Decimal to Octal Number System -
C Program Code input decimal number and convert to octal number system. Decimal number system is a base 10 number system. Decimal number system uses 10 symbols to

Program to Calculate Average of Numbers -
Takes n number of element from user (where, n is specified by user), stores data in an array and calculates the average of those numbers, program calculates the average if the number

C Language and Vertical Histogram Code -
C program code Vertical Histogram. Define Maximum length of a word. Define Maximum No of words in a sentence. Excluding the space in the word length. Resetting the word

C++ Implements Queue using Linked List -
C++ program, "using iteration", implements the list of elements removed from the queue in first in first out mode using a Linked list. A linked list is an ordered set of data elements,

C Program Checking Armstrong Numbers -
Check for Armstrong Number in C language. Armstrong Number: If sum of cubes of digits of number equal to same given number then the number is called as Armstrong Number.

C Language Program Infinite While Loops -
C Code example of Infinite While Loop. Since the value of the variable var is same (there is no ++ or -- operator used on variable, inside the body of loop) the condition var<=2 will be

Sort the Array Elements using Gnome Sort -
This C Program sort the array elements using gnome sort. Gnome sort(stupid sort) is a sort algorithm which is similar to insertion sorting except that 'moving an element' to its proper

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