Filling the array according to the rule - 2
Problem
Given a non-negative number
N
- the number of array elements (
N<=100
). Write a program that fills an array of
N
elements with the first natural three-digit numbers whose digits product is a three-digit number. Display the filled array on the screen in one line, separating the elements from each other with one space.
Examples
# |
Input |
Output |
1 |
5 |
269 278 279 287 288 |