Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  array coperison
Language: C/C++
Code:
#include <stdio.h>
void main()
{
    int count=0;
  int a[4],b[4],i;
  for(i=0;i<4;i++)
{
     scanf("%d%d",a[i],b[i]);
}
  for(i=0;i<4;i++)
{
     if(a[i]==b[i])
{
        count++
}
}
  printf("%d",count);
}
          
          
Comments: