{ A destination to learn coding }

# Happy Coding !!

## Leap Year Code

1600, 2016, 2020, 2024...

## Learn how to print a christmas tree

```                   *
***
*****
*******
*********
***********
*************
***************
*****************
*******************
************
**************
****************
******************
********************
**********************
************************
**************************
****************************
******************************
********************
**********************
************************
**************************
****************************
******************************
********************************
**********************************
************************************
**************************************
******
******
******
******
******
```

## Learn how to print a boat pattern

```         *
***
*****
*******
*******************
*****************
***************
*************
```

## Make a calculator using switch statement

The result is obtained by using switch statement.

```    *
***
*****
*******
*********
```

```1
2 3
4 5 6
7 8 9 10
```

## Making Pattern - Half pyramid

```* * * *
* * *
* *
*
```
```1 1 1 1
2 2 2
3 3
4
```
```1 2 3 4
1 2 3
1 2
1
```
```A A A A
B B B
C C
D
```

```*
* *
* * *
* * * *
```
```1
2 2
3 3 3
4 4 4 4
```
```1
1 2
1 2 3
1 2 3 4
```
```A
B B
C C C
D D D D
```

## Fibonacci Series

1 1 2 3 5 8 13 21 34 55 89 144...

## Swaping two numbers without using third variable.

New values are re-assigned to the existing variable. Short-hand operators are used.

## Code to check for a prime number

It uses modulus and a combination of for loop and if-else statements.

## Code to find area and circumference of the circle

It uses float data type and is one of the most simple code in C.

## Code to find factorial of any number.

A factorial is a product of an integer and all the intergers below it.
The result in this code is brought about by using for loop.

## Code to find odd and even numbers

Here, the result is accomplished by using modulo(%) arithmetic operator.