answersLogoWhite

0

/* LOVE METER */

#include

#include

void predict(void);

void main()

{

char n;

clrscr();

predict();

printf("\n\nAre you want to check again with another partner\n");

scanf("%s",&n);

if(n=='y')

{

predict();

}

printf("\n\n\n****Thank You****\n\n\n");

printf("\t\t\t\t\t@sawan soft.");

getch();

}

void predict(void)

{

char a[25],b[25];

int m,n,l,i,j;

printf("****Welcome to prediction game ****\n");

printf("\n******Enter your name******\n");

scanf("%s",a);

for(i=0;a[i]!='\0';i++)

{

b[i] =a[i];

}

printf("\n\n******Enter your partner name******\n");

scanf("%s",b);

for(j=0;b[j]!='\0';j++)

{

a[j]=b[j];

}

l=i+j;

if(l==1l==7l==13l==19)

{

printf("\n****FREIND****\n");

printf("\nyou will be freind not so more....");

}

if(l==2l==8l==14l==20)

{

printf("\n****LOVE****\n");

printf("\nYou can sucess own love....");

}

if(l==3l==9l==15l==21)

{

printf("\n****AFFECTION****\n");

printf("\nyou are in attraction, tell your heart felling soon....");

}

if(l==4l==10l==16l==22)

{

printf("\n****MARRIAGE****\n");

printf("\nYou got sucess in love....");

}

if(l==5l==11l==17l==23)

{

printf("\n****ENEMY****\n");

printf("\nKeep distance from them....");

}

User Avatar

Wiki User

13y ago

What else can I help you with?