Skip to content

Instantly share code, notes, and snippets.

@daemonfire300
Last active December 11, 2015 07:18
Show Gist options
  • Save daemonfire300/4565341 to your computer and use it in GitHub Desktop.
Save daemonfire300/4565341 to your computer and use it in GitHub Desktop.
void teiler(int x){
int i=1;
while(i<=x){
if(x%i==0){cout << i; i++}
else{i++;}
}
}
int main(){
int n=532;
teiler(n);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment