# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Sort, Select and Return the selected items from a ListView

C++ Finds All Roots of Quadratic Equation -
Program accepts "coefficients" of a quadratic equation from the user and displays the roots (both real and complex roots depending upon the discriminant). 'ax^2+bx+c = 0' (where a, b,

C Coding to Perform Matrix Multiplication -
C program, using recursion, performs Matrix multiplication of two matrices and displays the result. Use 2D array to represent a matrix and resulting matrix is stored in a different...

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

C++ Binary Addition & Binary Subtraction -
Addition, Subtraction, Multiplation, Result to decimal. Reverse second binary operand and Creating an array for addition. Addition of all columns without carry. Final calculations and

Finds the Sum of ASCII Values of All Chars -
Program takes a 'string as input' and finds the sum of 'ASCII values' of all characters in given string. Take a string as "input & store" it in the array string[]. Initialize the variable sum to '0'.

Increase 1 to all of the given Integer Digit -
Initialize variable sum to zero. Take a number as input and store it in the variable number. Obtain the remainder and quotient of the variable number. Store the remainder in the

Display all the Nodes in a Linked list using -
C program display all the nodes in a linked list 'using recursion'. This program uses recursive function and displays a 'Linked List'. A Linked List is an ordered set of 'data elements', each

C++ Codes Generate Armstrong Numbers -
To generate 'Armstrong numbers' in C++, you have to ask to the user to enter the interval to print the Armstrong number between a given interval as shown here in the following codes.