How To Make A Love Calculator By C Programming
#include <stdio.h>
#include <conio.h>
#include <string.h>
int main()
{
char a[100],b[100],ch='%';
int i,l,sum1=0,sum2=0,r;
printf("\t\t\tLove Calculator\n");
printf("\------*-------------*------*--------*------------*-------------*---------*-----\n");
printf("\t\t Created By Ashadullah Shawon\n\n");
printf("Enter Your full Name (ALL Capital)=");
gets(a);
l=strlen(a);
for(i=0;i<l;i++)
{
sum1=sum1+a[i];
}
printf("\nEnter Your Lover's Full name(ALL Capital)=");
gets(b);
l=strlen(b);
for(i=0;i<l;i++)
{
sum2=sum2+b[i];
}
r=(sum1+sum2)%100;
printf("\nLove between %s and %s is= %d%c",a,b,r,ch);
getch();
}
0 comments:
Post a Comment