Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are the functions of the integer variables high, low, mid, and cnt in the program? What role does the Boolean variable found play?
What are the functions of the integer variables high, low, mid, and cnt in the program? What role does the Boolean variable found play?

Best answer: The meaning of this code is to print X characters starting from position 1 in the string cnt! For example, cnt is "1234567" obtained by this function mid(cnt,1,5) The character is "12345" print printout