Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
359 B
2
Indexable
Never
 #include<stdio.h>
int main(){
	int n, max;	
	 	printf("Vui long nhap n: ");
	 	scanf("%d",&n);
	int a[n];
	for(int i=0;i<n;i++){
		printf("Nhap a[%d]: ", i);
		scanf("%d", &a[i]);
	}

		printf("Cac chi so la: ");
	for(int i=0; i<n; i++){
		if((a[i]>3) && (a[i]%2==0)){
  		  max = i;
  		  printf(" vi tri %d ",max);
		}
	}
	
	return 0;
}