# Visual Basic Programming Code Examples

## Visual Basic > Files Directories Drives Code Examples

### Example with File Open-Save as

C Code Print all Even numbers from 1 to N -
C Language program print all even numbers from 1 to n using for loop. So first let us talk about the easiest way to print even numbers. If I ask you to list all even numbers from 1 to

Program Code Find all Factors of Number -
C program to input a number from user and find all factors of the given number using for loop. Factor of any number is whole number which exactly divides the number into whole

Simple Calculator using Switch Statement -
This C Program takes an arithmetic operator +, -, *, / and two operands from the user and Performs the Calculation on the 2 operands depending upon the operator entered by the

C++ Program Implement Stack by Linked -
C++ program, "using iteration", implements the list of elements removed from the stack in last in first out mode using a linked list. A linked list is an ordered set of data elements,

Converts Hexadecimal to Binary Numbers -
Hexadecimal to Binary conversion is divided in 3 steps. Extract each hex digits separately. Find the Binary of each extracted Hex digit. Store the binary equivalent of extracted hex

C Program code to Print Number in words -
C program to input a number from user and print it into words using for loop. The above logic is correct however it print the words in reverse order. For example, suppose number

C Programming Code Use Goto Statement -
The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used, the control of the program won't be easy to trace, hence

C Language Codes & Arithmetic Operators -
Arithmetic operator performs mathematical operations such as addition, subtraction and multiplication on numerical values (constants and variables). C Program to demonstrate...