Dãy Số #4

PDF

Submit solution

Points: 10.00
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem types
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Yêu cầu

Nhập vào số nguyên ~n~, xuất ra dãy số từ ~n~ về ~1~.

Dữ liệu

Một dòng duy nhất, gồm số nguyên ~n~ ~(0< n\le 10^3)~.

Kết quả

Ghi ra dãy số từ ~n~ về ~1~, mỗi số cách nhau một khoảng trắng, mỗi khi gặp số chia hết chia cho 10, xuống dòng 1 lần trước khi ghi (xem ví dụ).

Input

11

Output

11
10 9 8 7 6 5 4 3 2 1

Comments

Please read the guidelines before commenting.


There are no comments at the moment.