Logo 
Search:

C Programming Article

Submit Article
Comments on Love Calculator
Category: C Programming (Beginners)    Author: Muhammed Athil

Calculate Your Love percentage


Lafleur Schizz
Lafleur Schizz from SwedenAug 18
If you want it just in an app use this.. check this one: https://play.google.com/store/apps/details?id=me.boogoo.love_caluclator
Zack Jack
Zack Jack from MalaysiaApr 18
Hello . can i know , how this love calculator being calculate? Please answer it quickly
Muhammed Athil
Muhammed Athil from IndiaJan 14
////plz check this tooo


#include<stdio.h>
#include<conio.h>
void main()
{

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

title();
printf(" NOTE\n ----\nThe information showing in this program is not CORRECT, It is just for fun\nLoading");
for(i=0;i<70;i++)
{
printf(".");
delay(50);
}
run:
title();
printf("Your name......... ?\n");
scanf("%s",name1);
printf("Partner's name.........?\n" );
scanf("%s",name2);
printf("Please wait Calculating.");
for(i=0;i<8;i++)
{
del();
}

title();
printf("Calculation completed!!\n");
delay(1000);


printf("Press ANYKEY to view result!!");

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*2/10;
}
title();

printf("The result is %ld% !!\n\n",t);
delay(1000);
printf("Enter your choice\n");
printf("1 for run again\n");
printf("2 for exit\n");
f:
o=getche();
switch(o)
{
case '1':
goto run;
break;
case '2':
exit(0);
break;
default:
printf("Wrong input !! try again");
goto f;
break;
}

}
void title()
{
clrscr();
printf("---------------------------- Love Calculator V.2.0 ----------------------------\n");
delay(500);
}
void del()
{
delay(100);
printf("..");
}
Muhammed Athil
Muhammed Athil from IndiaJan 14
@Amit Sharma

Thanks..........
Amit Sharma
Amit Sharma from IndiaDec 26
It's so lovely programs
Amit Sharma
Amit Sharma from IndiaDec 26
It's so lovely programmes


Please enter your Comment
  • Comment should be atleast 15 Characters.
  • Please put code inside [Code] your code [/Code].