#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{ char str1[20];
char str2[20];
int x,y,n,r,counter1,counter2,points=0;
clrscr();
printf ("Please enter a name: \n\n");
gets(str1);
printf ("\nEnter another name: \n\n");
gets(str2);
counter1=strlen(str1);
counter2=strlen(str2);
for (x=0; x<counter1; x++)
{ for (y=0; y<counter2; y++)
{ if (str1[x]==str2[y])
points++;
else;}
if(points!=0)
points++;
}
for (n=1; n<counter1; n++)
{ if (str1[0]==str1[n])
points++;
else;}
printf ("\n%d \n",points);
r=points%6;
switch®
{
case 1: printf ("\nFriends"); break;
case 2: printf ("\nLovers"); break;
case 3: printf ("\nAffection"); break;
case 4: printf ("\nMarriage"); break;
case 5: printf ("\nEnemies"); break;
case 0: printf ("\nSister"); break;
}
getch();
}
c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.
how to create a c program for left factoring.
C-SPAN Bus program was created in 1993.
No you can't. main() is the entry point of a C program where execution starts. Only a single main() can exist in a C program. A program with 2 mains wil not even compile successfully.
You first learn how to program in C.
Because C for Calgary and flames for flames
the features of a C program
c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.
I think it is 'execution of a C program'.
how to create a c program for left factoring.
the uniform style did not change but the logo went from an "a" to a "c"
find the program in c-pgms.blogspot.com
what are the parts of C language program
Yes, you can program games with C++.
a c program for creat a virus
Not, there are many people, who live happily without C-program.
David Spuler has written: 'Comprehensive C' -- subject(s): C (Computer program language) 'C++ and C efficiency' -- subject(s): C++ (Computer program language), C (Computer program language)