Friday, June 26, 2015

We are in love

#include<stdio.h>
///simple loving program
///koushikahamed@yahoo.com

int main()
{
    system("color 1C");
    char a[100],b [100],approval[10],yes[10];


    printf("Please enter the boy name:");
    gets(a);

    printf("\nPlease enter the girl name:");
    gets(b);

    printf("\n%s Do you love %s ??\n",b,a);

    printf("\nplease don't be late!!!!!  %s is waiting\n",a);

    printf("\nexpress your feelings %s\n",b);

    printf("\nif you interested with %s type y/no\n",a);

    scanf("%s",approval);

    printf("\nif you love %s type y/no\n",a);

    scanf("%s",yes);

    strcpy(approval,yes);

    strrev(approval);

    if(strcmp(approval,yes)==0)
    {
    printf("\n<<<%s + %s>>> is a great couple>>>\n",a,b);
    printf("\n");

    printf(" .*'''*'''*:*'''*'''*;        \n");
    printf("  * %s+%s '''              \n",a,b);
    printf("   *              *            \n");
    printf("     *          *              \n");
    printf("       *      *                \n");
    printf("           *                   \n");


    }
    else if(strcmp(approval,yes)!=0)
        printf("\n%s and %s is not couple they are seems to be good friend>>>\n",a,b);

    return 0;
}


output:


Please enter the boy name:Romeo

Please enter the girl name:Juliet

Juliet Do you love Romeo ??

please don't be late!!!!!  Romeo is waiting

express your feelings Juliet

if you interested with Romeo type y/no
y

if you love Romeo type y/no
y

<<<Romeo + Juliet>>> is a great couple>>>

 .*'''*'''*:*'''*'''*;
 * Romeo+Juliet '
   *                    *
     *               *
       *        *
           *

No comments:

Post a Comment