# C Program to implement love calculator

## Love calculator

In this tutorial, we are going to see the program for love calculator. Love calculator program is only for entertainment.

For implementing such type of program we can use any logic such program has on predefined logic. It’s only implemented for fun.

In this program, we implement in a simple way using simple logic which is as follows

A logic for love calculator

1. First, we take the name of girl and boy (partners ) to calculate their percentage of love.
2. We calculate a sum of the value of each letter in girl name by using its ASCII values and store sum in sum1.
3. Same for a boy name, we calculate a sum of a value of each letter in boy name by using its ASCII values and store in sum2.
4. Now, we add each digit in sum1 and sum2 and sum with 40 to total.
5. This resultant sum we can consider as the percentage of love between partners.

### C Program to implement love calculator

Output :

Explanation :

1. Start

2. Define a function to calculate sum of all digits .

3. Write a main function.

4. Declare variable

your_nm  => to store your name

prtnr_nm  => to store partner name

sum, sum1 => to store sum of digits

i, => temporary variable

choice => to take choice from user

per => to store percentage

5. Take couple name from user.

6. Calculate percentage (using above logic we used )

7. Print percentage.