Good people, help, really need help. It is necessary to write a function that iterates over integers from 0 to infinity and displays, comma-separated, those that are divided without remainder by the number of digits (signs) of this number (that is, those two-digit ones that are divided by 2, three-digit ones by three etc.). Processing should stop at the moment when N (user-defined) such numbers are displayed.
<html> <head> <title>Test</title> <link href="main.css" rel="stylesheet"> </head> <body> <div id="task"> <h1>Test</h1> <p>Функция, которая перебирает целые числа от 0 до бесконечности и выводит на экран, через запятую, те, которые делятся без остатка на количество разрядов (знаков) этого числа (т.е.те двухзначные, которые делятся на 2, трехзначные на три и т.д.). Выполнение обработки должно остановиться в тот момент, когда всего будет выведено N (задается пользователем) таких чисел.</p> <input type="number" id="cnt" /><input type="button" id="btn" value="OK" onclick="fill();"/> </div> </br> <div id="inform"></div> </body> </html>