Just another program for my bot: 4 Ping sensors with Buzzer alarm (updated)

Thanks very much for the reply.
Yeah, my first attempt with just one worked as well as my '3 ping sensor' code at the beginning of this post. I just wanted to make it more efficient. I was writing out 3 almost identical blocks of code, when I could/should write just one block and then make 3 calls to that single block from the main loop.
So I should go back to the single Ping sensor code and debug?

Ok, for an array, would this be something I would start to look at?

int pingInts[5];
//or
int pingInts[] = {in1, in2, in3, in4};
//or
int pingInts[5] = {in1, in2, in3, in4};

//then to retrieve a value from the array
x = pingInts[3];