Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  bh
Language: C/C++
Code:
#include <stdio.h>

int main()
{
    int i,n,a[20];
    printf("enter 10");
    scanf("%d",&n);
    for(i=1;i<=n;i++){
    scanf("%d",&a[i]);
    }
    
    while(i>0){
        if(i%2!=0){
            a[i-1]=a[i];
        }
    else 
    i++;
        
    }

printf("%d",a[1]);

    return 0;
}
          
Comments: