fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4. int n;
  5. while(cin>>n and n!=0){
  6. for(int i=1; i<n; i++){
  7. if(i % 7 > 0){
  8. cout<<i<<' ';
  9.  
  10. }
  11. }
  12. cout<<endl;
  13. }
  14. }
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
Standard output is empty