Visual Basic Programming Code Examples
Visual Basic > Files Directories Drives Code Examples
Locking and unlocking files
Program to Display Odd numbers without -
C Program to print odd numbers from 1 to n without if statement. The above approach is not optimal approach to print odd numbers. Observe the above program for a while. You
C Language Code find First and Last Digit -
C Language program code to find first & last digit. Input a number from user & store it in some variable say num. Find last digit using modulo division by 10 lastDigit = num % 10.
Check if a Number is Positive or Negative -
C Language check if a number is positive or negative using nested if...else. This program takes a number from user & checks whether that number is either positive or negative or
Program Find the Number of Occurrences -
'Binary Search tree' for a given unsorted data array & maintain an additional count variable. If any 'Element is Repeated' then increase the count of that 'Node'. Proceed with the search
Sum of each Row and Columns of a matrix -
C program to read elements in a matrix and find the sum of elements of each row and columns of matrix. C program to calculate sum of rows and columns of matrix. Input...
C++ Program Implement ScapeGoat Tree -
Function to check if "tree is empty". Function to count number of "nodes recursively". And function to search for an element. Function to search for an element recursively. Function
Checks a Character is Capital Letter or Not -
Takes input a Character and Check it whether a 'character' is capital letter, small letter, Digit or Special character. 'All characters' like small or capital letters, digits and special characters
Program Add Two Numbers Using Pointer -
In program we're going to accept 2 numbers from user using pointer. After accepting Two Numbers we are going to add Two Numbers by using "De-reference Operator" in Pointer.