You are on page 1of 1

Write a Program that check whether two Arrays are Equal or Not

============================================
#include <conio.h>
#include <iostream.h>
void main()
{
clrscr();
int array1[10]={1,2,3,4,5,6,7,8,9,10};
int array2[10]={1,2,3,4,5,6,7,8,9,10};
for (int i=0;i<10;i++)
{
if (array1[i]==array2[i])
continue;
else
break;
}
if (i<=9)
cout<<"\nArrays Are Not Equal";
else
cout<<"\nBoth Arrays Are Equal";

getch();

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006