Skip to content

Instantly share code, notes, and snippets.

@pinglunliao
Last active November 5, 2019 08:44
Show Gist options
  • Save pinglunliao/bad3d0ac7b2e52fba1e0 to your computer and use it in GitHub Desktop.
Save pinglunliao/bad3d0ac7b2e52fba1e0 to your computer and use it in GitHub Desktop.
#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