# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Find an item in a listview

Find last Occurrence of Character in String -
C program to input any String from user and find the Last occurrence of a given character in the string. Input String from user, 'Store it' in some variable say 'str'. Declare a index =-1

Program Find GCD (HCF) of Two Numbers -
Recursive function in C language to find GCD (HCF) of two numbers. Find GCD ( Greatest Common Divisor ) or HCF ( Highest Common Factor ) of two numbers using recursion in C

Reverse a Number Check it is Palindrome -
Take the Number which you have to Reverse as the input. Obtain its quotient & remainder. Multiply the Separate variable with 10 & add the obtained remainder to it. Do step 2 again

Program Code for Beginners Area of Circle -
C Area of Circle. Ellipse in which the two axes are of equal length. Plane curve generated by one point moving at a constant distance from a fixed point. You can compute area of circle.

C++ Programs Converts Decimal to Binary -
To convert decimal number to binary number in C++, you have to enter the decimal number to convert it into 'binary number' to print the equivalent value in binary format as shown in

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

C Swapping Two Numbers Using Variable -
C programmers are required to swap values of two variables. Here, we shall learn how to swap values of 2 integer variables, that may lead to swapping of values of any type and...

Display its own Source Code as its Output -
Display the content from the same file you are writing the source code. Open the file you are currently writing using statement fopen and assign it to the pointer fp. Scan the every