Beruflich Dokumente
Kultur Dokumente
h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: ");
gets(str1);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
gets(str1);
gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if(
{
(str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char str1[100],str2[100];
int i,j,k;
puts("ENTER STRING 1: "); gets(str1);
puts("ENTER STRING 2: "); gets(str2);
for(i=0; str1[i]!='\0';i++);
for(j=0; str2[j]!='\0';j++);
if(i!= j)
puts("GIVEN STRINGS ARE NOT EQUAL");
else
{
for(k=0; k<i; k++)
if( (str1[k]-str2[k])<0 || (str1[k]-str2[k])>0 )
{
puts("GIVEN STRINGS ARE NOT EQUAL");
exit(1);
}
if(k==i)
puts("GIVEN STRINGS ARE EQUAL");
}
getch();
}