#include "prot.h" int input_width(int countOfNumbers){ const int BLOCK_WIDTH = 10; bool check = false; int width =0; while(check == false){ std::cout << "Input width:"<> width; if(width < 70){ std::cout << "width less 70" << std::endl; } else if(width > 800){ std::cout << "width more 800" << std::endl; } else if(width < countOfNumbers*BLOCK_WIDTH / 3.0){ std::cout << "менее трети количества чисел, умноженных на ширину блока " << std::endl; } else{ check = true; } } return width; }