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
The input is a sequence of integers, not necessarily in a single line.
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.
Author: ProAl professors
Generation: 2026-01-25T16:23:38.944Z
© Jutge.org, 2006–2026.
https://jutge.org