Last active
November 5, 2019 08:44
-
-
Save pinglunliao/bad3d0ac7b2e52fba1e0 to your computer and use it in GitHub Desktop.
a147: Print it all FYI: https://yunlinsong.blogspot.com/2015/02/print-it-all.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cmath> | |
#include <cstdio> | |
using namespace std; | |
int main(void){ | |
int num = 0; | |
while(scanf("%d", &num) != EOF) | |
{ | |
for(int i = 1; i < num; i++) | |
{ | |
if( i % 7 == 0) | |
continue; | |
printf("%d ", i); | |
} | |
printf("\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment