Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

26 строки
662 B
C++

#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:"<<std::endl;
std::cin >> 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;
}