Welcome to Home.

Sunday, November 16, 2014

Program in C/C++ to Calculate Love Percentage [Love Calculator]


Source Code _ Download Free :: Turbo c/C++ 7 Akki
-------------------------------------------------------------
#include stdio.h
#include conio.h
void main()
{
char name[11],name1[11];
int i=0,j=0,ans=0;
textbackground(RED);
clrscr();
printf("\t===================================\n\t");
printf(" Love Calculator \n\t" );
printf("===================================\n");
printf("\tEnter Your Name [max. 9 characters]\n\tAns.");
scanf("%s",&name);
printf("\t************************************\n");
printf("\tEnter His/Her Name [max. 9 characters]\n\tAns.");
scanf("%s",&name1);
printf("\t************************************\n");
while(name[i]!='\0')
i++;
while(name1[j]!='\0')
j++;
ans=i*j;
while(ans>100)
ans--;
while(ans<=0)
ans++;
printf("\tLove Percent of %s & %s is %d%",name,name1,ans);
getch();
}

2 comments:

  1. I learn some new stuff from it too, thanks for sharing your information.
    family & love quotes

    ReplyDelete
  2. create quizz online A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post.

    ReplyDelete