Repeating only a specific condition during a loop

It's simpler if you use what's there as intended.

void loop() // that has to be there anyway
{
if (end_condition) return; // better/more complete would be put the AVR into sleep mode

BTW, all elements of int y[] you have there will == 0. Integers round off float constants.