How To Make A Love Calculator By C Programming

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();
}

Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment