Flames program in c

 /* ****flames*****/

#include<stdio.h>

#include<string.h>


void next(int);


int main()

{

char name1[2003],name2[1003];

int a,b,c;

printf("🀣πŸ₯°πŸ˜˜πŸ₯³πŸ‘ΊπŸ€―FLΓƒMΓ‹§πŸ˜ŠπŸ˜πŸ€©πŸ’žπŸ˜‘😜\n");

printf("Enter first person Name :\n");

gets(name1);

printf("Enter second person Name :\n");

gets(name2);

printf("\nπŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘\n\n");   

printf("%s\nF L A M E S\n%s\n\n",name1,name2);

  a=strlen(name1) ;

   b= strlen(name2);

    strncat(name1,name2,b);

 c=a+b;//total strlen of new name1

   

int h,k,l;

char ch;

    for( h=0;h<c;h++){

    if(name1[h]>64&&name1[h]<91)

    name1[h]=name1[h]+32;

    }//all become small alphabet

    

    for(h=0;h<a;h++){

    for(k=a;k<c;k++){

    if(name1[h]==name1[k]){

    ch=name1[h];

    name1[k]='0';

    }

    }

    if(name1[h]==ch)

    name1[h]='0';

    }//all common values become zero

    

int gdv=0;// to calc the remaining letters 

    for(h=0;h<c;h++){

    if(name1[h]!='0'&&name1[h]!=' ')

    gdv++;

    }//success

    // phase 1 completed call other function

       

    printf("%d\n",gdv);

    next(gdv);

    printf("Don't be so emotional just enjoy\n");

    printf("πŸ˜πŸ˜ŽπŸ€ πŸ€‘πŸ˜‡πŸ˜πŸ˜πŸ₯°πŸ₯°πŸ˜˜πŸ˜˜πŸ€©πŸ˜πŸ₯³πŸ˜‚\n");

    return 0;

}


//to find flames

void next(int ch){


switch (ch){

case 3:

case 5:

case 14:

case 16:

case 18:

case 21:

case 23:  

 printf("😊😊😊Friends☺️☺️☺️\n"); 

break;


case 10:

case 19: 

  printf("πŸ₯°πŸ₯°πŸ₯°Lovers😘😘😘\n");  

break;


case 8:

case 12:

case 13:

case 17:

case 28:  

 printf("🀩🀩🀩Attraction😍😍😍\n"); 

break;


case 6:

case 11:

case 15:

case 26:

  printf("πŸ₯³πŸ₯³πŸ₯³Marriage😎😎😎\n");  

break;


case 2:

case 4:

case 7:

case 9:

case 20:

case 22:

case 24:

case 25: 

 printf("πŸ‘ΏπŸ‘ΏπŸ‘ΏEnemyπŸ‘ΊπŸ‘ΊπŸ‘Ί\n");  

break;


case 1:

case 27:  

 printf("😀😀😀SiblingsπŸ˜…πŸ˜…πŸ˜…\n");

break;


case 0: 

printf("πŸ€”πŸ€”πŸ€”No relation exist b/w youπŸ€”πŸ€”πŸ€”\n");

break;


default :

printf("do manual work kiddoπŸ˜‚πŸ˜‚πŸ˜‚\n");

break;

}


}


Popular posts from this blog

Refferal code