3 or 5


Submit solution

Points: 50 (partial)
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type

題目說明

輸入一正整數N,之後由小至大輸出1至N之間所有3或5的倍數 若N為3或5的倍數,也要輸出

輸入限制: 正整數

輸入

正整數N

輸出

1~N之間的所有3或5的倍數

sample input1

15

sample output1

3 5 6 9 10 12 15

Comments

There are no comments at the moment.