What is the purpose of the given code snippet? for (int i = 0; i < 8; i ) invalue = scnr.nextdouble(); if (invalue > biggestval) biggestval = invalue;