#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<string.h>
int q=0;
char name1[100],name2[100],n[100];
void load(int x)
{
textcolor(BLUE);
for(int i=0;i<x+1;i++)
{
clrscr();
cout<<"\n\n LOVE CALCULATOR\n";
cout<<" ===============\n\n";
cout<<" Your Name : "<<name1;
cout<<"\n\n Lover Name : "<<name2;
cout<<"\n\n Enter a number : "<<n;
cout<<"\n\n\n";
textcolor(RED);
cputs(" LOVE PERCENTAGE : ");
textcolor(RED);
cout<<i<<"%";
textcolor(BLUE);
delay(20);
}
}
int cal (int x)
{
int r,i=1;
do
{
r=x%10;
if(r==0)
r=1;
i=i*r;
x=x/10;
}while(x>1);
return(i);
}
void lovecal()
{
textcolor(BLUE);
int x=0,i;
clrscr();
cout<<"\n\n LOVE CALCULATOR\n";
cout<<" ===============\n\n";
cout<<" Your Name : ";
cin>>name1;
for(i=0;i<strlen(name1);i++)
x=x+name1[i];
cout<<"\n Lover Name : ";
cin>>name2;
for(i=0;i<strlen(name2);i++)
x=x+name2[i];
cout<<"\n Enter a number : ";
cin>>n;
for(i=0;i<strlen(n);i++)
x=x+n[i];
x=x+q;
do
{
x=cal(x);
}while(x>20);
x=x*4;
load(x);
}
void main()
{
char ch;
do
{
clrscr();
lovecal();
cout<<"\n\n TRY AGAIN (Y/N) ? : ";
cin>>ch;
q++;
}while(ch=='Y'||ch=='y');
cout<<"\n\n";
textcolor(RED);
cputs(" THANK YOU FOR USING LOVE CALCULATOR");
getch();
}
please tell me how to check Love Calculator. i am in relationship from 2 year. i am thinking to knot my relationship but before it i want to check our Love Calculator. please tell me, is it correct to check Love Calculator percentage online.
ReplyDelete