# Love Calculator Program in C | Love Meter | Love Percentage

C program for calculating your love percentage using functions. Love calculator program in C. Love meter program in C. Love percentage program in C. This Program Is Only Use For Fun Don't Take Personal Enjoy

## Love Calculator Program in C

``````#include <stdio.h>
#include <conio.h>

void main()
{
int i, l1;
long int s1, s2, t;
char name1[50], name2[50];
void title(), del();

title();

title();
scanf("%s", name1);

scanf("%s", name2);

for (i = 0; i < 8; i++)
{
del();
}

title();

title();

printf("\n\nPress any key to view result\n\n");

l1 = 0;
for (i = 0; i < 50; i++)
{
if (name1[i] != '\0')
{
l1++;
continue;
}

break;
}

s1 = 0;

for (i = 0; i < l1; i++)
{
s1 = s1 + name1[i];
}

getch();
l1 = 0;

for (i = 0; i < 50; i++)
{
if (name2[i] != '\0')
{
l1++;
continue;
}

break;
}

s2 = 0;
for (i = 0; i < l1; i++)
{
s2 = s2 + name2[i];
}

t = s1 + s2;
while (t > 100)
{
t = t / 10;
}

title();
printf("the result is %ld%", t);
getch();
}

void title()
{
printf("!!!!!!!!! Love Calculator !!!!!!!!!\n");
}

void del()
{
printf("..");
}``````

### Similar to Love Meter

Previous Post
Next Post

#### post written by: Ghanendra Yadav

Hi, I’m Ghanendra Yadav, SEO Expert, Professional Blogger, Programmer, and UI Developer. Get a Solution of More Than 500+ Programming Problems, and Practice All Programs in C, C++, and Java Languages. Get a Competitive Website Solution also Ie. Hackerrank Solutions and Geeksforgeeks Solutions. If You Are Interested to Learn a C Programming Language and You Don't Have Experience in Any Programming, You Should Start with a C Programming Language, Read: List of Format Specifiers in C.