text: #include<stdio.h>
  int main(){
  	
  	int arr[100]={9, 19, 29, 39, 49, 59, 69,79};
  	int key=109, i=0, j=0, n=8 ;
  	int found=0;
  	for(i=0;i<n;i++)			
  		if(arr[i]==key){
  			found=1;
  			break;
  		}
  		
  	for(j=i; j<n-1; j++)	{
  			arr[j]=arr[j+1];
  	}	
  	
  	if(found==1){
  		for(int i=0;i<n-1;i++){
  			printf("\t%d\n",arr[i]);
  		}
  	}
  	else{
  		for(int i=0;i<n;i++){
  			printf("\t%d\n",arr[i]);
  		}
  	}
  
      
  }
  
  