2011-08-03 17:55:24Morris

a147. Print it all

準備開始短碼中毒了
/**********************************************************************************/

/*  Problem: a147 "Print it all" from                                             */
/*  Language: C                                                                   */
/*  Result: AC (0ms, 220KB) on ZeroJudge                                          */
/*  Author: morris1028 at 2011-08-03 17:21:36                                     */
/**********************************************************************************/


#include<stdio.h>
main() {
    int n, a;
    while(scanf("%d", &n) == 1 && n) {
        for(a = 1; a < n; a++)    a%7 != 0 && printf("%d ", a);
        puts("");
    }
    return 0;
}