ähmm wiso so kompliziert:
Code:
 int i;
 while(i<10000){
 i++;
 if bedingungtesten(i) 
   cout<<i; 
}