I don't know what you're trying to do here, but this doesen't do what you expect. It actually doesn't do anything at all.
Also if you find yourself naming things like a1, a2, etc, you're doing it wrong. For clusters of variables like that you're better off with arrays as shacktar suggested.
Just like the OP's code, that won't compile. Also, age && height && weight && date_of_birth will be true if each value is non-zero and false otherwise. Probably not what was intended.
Here is a function that does what I think the OP wants.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
constint ARRAY_SIZE = 12;
int a[ARRAY_SIZE];
//you can pass in "a" as the first parameter, and pass in 1 as min and 6 as max
bool AllValuesInRange(int myArray[], int min, int max)
{
bool allInRange = true;
for(int i = 0; i < ARRAY_SIZE && allInRange; i++)
{
allInRange = allInRange && ( (myArray[i] >= min) && (myArray[i] <= max) );
}
return allInRange;
}