# C Programming Code Examples

## C > If Else and Switch Case Code Examples

### program to print number of days in a month using switch case

```
```

```
```

Sum of Natural Numbers using Recursion - C Program find the sum of Natural Numbers using recursion. The 'Positive Numbers' 1, 2, 3... are known as natural numbers. Program below takes a positive integer from the user

Built-in Data Types in C++ Programming - Any programming language has built in data types. Data types are used to create variables or your new data types. Variable is a amount of memory that has its own name and value.

Calculates Area & Circumference of Circle - To calculate "area and circumference" of any circle in "C++", you have to ask to the user to enter the radius of circle, place the radius in a variable say r and make two variable, one for

C++ Program Finds Factorial of A Number - The factorial of a positive integer n is equal to 1*2*3*...n. In program, user enters a positive integer. Then the "factorial" of that number is "computed and displayed" in the screen. Here

Multiply a Number by 4 Bitwise Operators - Program to multiply given number by 4 using bitwise operators. C Program code multiplies given number by 4 using "Bitwise Operators". Bitwise Operators: or, and, xor, not, left shift,

Program to Delete Element from an array - Program code to delete an element from an array at specified position. How to remove an element from array at given position. Array is a linear data structure. It provides an index...

Converts Hexadecimal to Decimal Number - C program to input hexadecimal number and convert it to Decimal number. Hexadecimal number system is a base 16 number system. It uses 16 symbols to represent all number i.e.