# Visual Basic Programming Code Examples

## Visual Basic > Code Snippets Code Examples

### Delete files on a floppy disk

Implement Prims algorithm using greedy -
C Program code implement prims algorithm using greedy method. For first smallest edge. We have fist smallest edge in graph. We have to find min dis of each vertex from either...

C++ Shutdown & Restart Your Computer -
C++ sample made for both i.e., to shutdown your computer or to 'restart your computer', first it will ask to the user want to shutdown computer or want to restart computer. Then

C Language Calculation Divide Product PI -
C Calculations on a table, the radius of table, the diameter of the table, the circumference of the table, the area of a circle, calculate the radius, calculate the circumference, calculate

C Find LCM of 2 Numbers using Recursion -
C Program to find LCM of two numbers using recursion. Initialize multiple variable with the maximum value among two given numbers. Check whether multiple clearly divides both

C Language Code Formula of Permutation -
Permutation refers number of ways in which set members can be Arranged or Ordered in some fashion. The 'Formula of Permutation' of arranging k elements out of n elements is

Convert a Given Number of Days in Terms -
C language program take the number of days as input. For the number of years, divide the input by 365 and obtain its quotient. For the number of weeks, divide the input by 365 and

identical to scanf() example in C language -
C programming code to Identical to scanf() except that data is from buf. The number of variables assigned. A value of zero means that no fields were assigned. EOF indicates

Switch Case Statement in C Programming -
The Switch Case statement is used when we have multiple options & we need to perform a different task for each option. Case doesnt always need to have order 1, 2, 3 and so on...