# Visual Basic Programming Code Examples

## Visual Basic > API and Miscellaneous Code Examples

### Check if a loggin password and user name are correct

C++ Program to Find Factorial of Number - First think what is the factorial of a number? How 'mathematically' it can be calculated. If you got this info then it will be very easier to make a C++ code logic to find the "Factorial".

C++ Implement Gauss Jordan Elimination - This method can also be used to find the rank of a matrix, to calculate the determinant of a matrix, to calculate the "inverse" of invertible square matrix. C++ Gauss Jordan Elimination

C++ Random Numbers the Middle Square - This C++ Program generate random numbers using Middle Square method. In practice it is not a good method, since its period is usually very short & it has some severe 'weaknesses',

C Sort Set of Strings in Alphabetical Order - Program to sort set of strings in alphabetical order using strcmp(). Program will accept set of 5 strings & sort them using 'strcmp' library function and "Print the Result" on the screen.

C++ Codes Prints One Dimensional Arrays - You have to ask to the user to enter array size array elements to store all the array elements in one dimensional and then print the array in "one dimension" using one for loop as shown

C Sample Code Function Call by Reference - What is function call by reference in C? When we call a function by passing the addresses of actual parameters then this way of calling the function is known as call by reference. In call

Program Solves the Magic Squares Puzzle - Using iteration, finds the Magic Square for a given odd sized number. A magic square is an arrangement of numbers from 1 to N^2 in an [N x N] matrix, with each number occurring...

Quick Sort with the Complexity Constraint - Randomly select pivot value from the subpart of the array. Partition that subpart so that the values left of the 'pivot' are smaller and to the right are greater from the pivot. And consider