Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define endl '\n'
- using namespace std;
- int main(){
- int n;
- int t=2;
- cin >> n;
- do{
- if(n%t==0){
- cout << n/t;
- break;
- }
- }while(t++);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement