P 8
P 8
Program 8
Algorithm:
Step1: start
Step 9: stop
GNDEC/CPL
SUB CODE: 21CPL17/27
FLOWCHART:
GNDEC/CPL
SUB CODE: 21CPL17/27
PROGRAM:
#include<stdio.h>
#include<conio.h>
#include<string.h>
void stringlength(char a[100],char b[100]);
void concatenate(char a[100],char b[100]);
void stringcompare(char a[100],char b[100]);
void main()
{
char p[100],q[100],ch[100];
int len1,len2;
clrscr();
printf("Enter the first string:\n");
gets(p);
printf("Enter the second string:\n");
gets(q);
stringlength(p,q);
stringcompare(p,q);
concatenate(p,q);
getch();
}
else
GNDEC/CPL