Posts

Showing posts from September 26, 2021

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]!=&#

Numerology program

#include<stdio.h> #include<string.h> int recc(int); void info(); int main(){ int val,y,total=0; puts("Numerology\nEnter your name :"); char a[2003]; gets(a);  y = strlen(a); //printf("length of string is %d\n\n",y); printf("\nEntered name is %s\n\n",a); for(int r=0;r<y;r++){ switch(a[r]){ case 'a': case 'i': case 'j': case 'q': case 'y': case 'A': case 'I': case 'J': case 'Q': case 'Y':  val =1; break; case 'b': case 'k': case 'r': case 'B': case 'K': case 'R':  val =2; break; case 'c': case 'g': case 'l': case 's': case 'C': case 'G': case 'L': case 'S':  val =3; break; case 'd': case 'm': case 't': case 'D': case 'M': case 'T':  val =4; break; case 'e': case 'h': case 'n': case &#