FLAMES IN C++

 

FLAMES PROGRAM IN C++


//DEVELOPED BY KAMESH THE HACKER

#include<iostream.h>

#include<string.h>

int main()

{

int s,w,ka,t,k,a,m,e,s1,q,h;

e=0;

h=0;

char x[25],y[25];

cout<<"ENTER YOUR NAME:";

cin>>x;

cout<<"ENTER YOUR LOVER NAME:";

cin>>y;

a=strlen(x);

t=strlen(y);

a=a+t;

for(s=0;s<t;s++)

{

 for(w=0;w<strlen(y);w++)

 {

  if(x[s]==y[w])

  {

   h++;

   e=0;

   for(k=0;k<strlen(y);k++)

   {

    if(k==m)

    {continue;}

    else

    {

     y[e]=y[k];

     e++;

    }}break;

  }

 }

}

s1=a-2*h;

if(s1==6||s1==11||s1==15)

{

    cout<<"\tMARRIAGE";

}

if(s1==3||s1==5||s1==14||s1==16)

{

 cout<<"\tFRIENDS";

}

if(s1==8||s1==12||s1==13||s1==17)

{

 cout<<"\tATTRACTION";

}

if(s1==2||s1==4||s1==7||s1==9)

{

 cout<<"\tENEMY";

}

if(s1==1)

{

 cout<<"\tSISTER";

}

if(s1==10)

{

 cout<<"\tLOVE";

}

cout<<"\n----------------------------------------------------";

cout<<"\nenter the 1 to enter another name";

cin>>q;

if(1==q)

{

 main();

}

 else

 {

  cout<<"THANK YOU"; 

  cout<<"\n\tDEVELOPED BY KAMESH";  

}

}

//DEVELOPED BY KAMESH



Comments

Popular Posts