# Visual Basic Programming Code Examples

## Visual Basic > Code Snippets Code Examples

### Create a file

C Program to find Transpose of a Matrix -
C program to read elements in a matrix and find transpose of the given matrix. How to find transpose of a given matrix in C. Input elements in matrix A from user. Declare...

C language simple program dice throwing -
C Programming dice throwing code. Seed the random number generator. The highest score of the two dice wins. Get a random number from 1 to 6. Calculate the total of the two...

Prints Days in Month Logical OR Operator -
The above logic is simple & easy to code. But it's lengthy and not optimal to implement. In the above solution we are performing same task for multiple conditions i.e. print 31 days

C++ Programming Subtract Two Matrices -
Program ask to the user to enter any two 3*3 array elements to subtract them i.e., Matrix1 - Matrix2, then display the "subtracted" result of the two matrices ( Matrix3 ) on the screen:

C Language Find Frequency of Characters -
In C Coding, the string entered by the user is stored in variable str. Then, the user is asked to enter the character whose frequency is to be found. This is stored in variable ch. Now,

C Program to Find Smallest array element -
Finding smallest value in an Array is a classic C array program. C code gives you an insight of iteration, array and conditional operators. We iteratively check each element of array...

Code Sum of Prime numbers between 1- n -
C program to find sum of all prime numbers between 1 to n using for loop. Prime numbers are positive integers greater than 1 that has only two divisors 1 and the number itself. For

C++ Language Codes Print Pascal Triangle -
To print "Pascal Triangle" in C++, you have to enter the Number of Line. So to Print "Pascal Triangle", you have to use three For Loops as shown here in the C++ Programming samples