Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  stone
Language: C/C++
Code:
#include <stdio.h>
int main()
{
     #include <stdio.h>
void main()
{
    int a[10], b[10],c[10],t,i,m,n;
     scanf(“%d’,&t);
     for(i=0;i<t;i++)
     {
          scanf(“%d”,&a[i]);
     }
     for(i=0;i<t;i++)
     {
          if(a[i]>4)
          {
               if((A[i]%2)==0)
               {
                    printf(“yes”);
               }
               else
                    printf(“no”);
          }
          if(a[i]==4)
          {
               printf(“yes”);
          }
          else
               printf(“no”);
          if(a[i]>4)
          {
               if(a[i]/4==0)
               {
                    m=a[i]/4;
                if(m%2==0)
                         printf(“no”);
                    else 
                        printf(“yes”);
               }
               else
               {
                    n=a[i]%2;
                    if(n==0)
                         printf(“no”);
                    else
                         printf(“yes”);
               }
     }
}
     return 0;
}
          
          
Comments: