Write a program that reads a sequence of integer numbers and outputs those that are multiple of 7 but sorted in ascending order.
For instance, for the input: 43 25 35 12 14 28 9 71 14 23
the output would be: 14 14 28 35
Input
The input is a sequence of integers, not necessarily in a single line.
Output
The output is a single line, with the multiples of seven in the input sorted in increasing order.
If there are no multiples of 7 in the input, the output must be “No multiples of 7”.
The output format and spacing must follow the examples shown below.
Input
43 25 35 12 14 28 9 71 14 23
Output
Multiples of 7: 14 14 28 35
Input
34 29 16 44 12 99 88
Output
No multiples of 7
Input
99 44 66 42 22 7 13 19 21 7 21 9
Output
Multiples of 7: 7 7 21 21 42