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