# Visual Basic Programming Code Examples

## Visual Basic > Control Special Effects Code Examples

### How to create a 3D embossed effect on text using label controls.

Convert Decimal to Octal Number System -
C Program Code input decimal number and convert to octal number system. Decimal number system is a base 10 number system. Decimal number system uses 10 symbols to

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

C programming Scanf() Format Specifiers -
Read a floating-point value, read a single character, read a decimal integer, read an integer in either decimal, octal, hexadecimal format, read a floating-point number, read a

C++ Coding Generating Random Numbers -
Following C++ program generate 100 random numbers using rand() function of stdlib.h. To generate random numbers in C++, we use the function rand() to generate and print random

C++ Language Character & String Literals -
When writing both single "character & string" literals, it is Necessary to 'Put the Quotation' marks surrounding them to distinguish them from possible variable identifiers or reserved

C Codes Calculates Prints the Value of nPr -
In the following c program we are calculating the value of nPr based on the given values of n and r. nPr can also be represented as P(n,r). The formula of P(n, r) is: n! / (n - r)!. P(5, 2)=5!

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++ Program to Find Factorial of Number -
First think what is the factorial of a number? How 'mathematically' it can be calculated. If you got this info then it will be very easier to make a C++ code logic to find the "Factorial".