Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- int n,okosa,urapun;
- ifstream in ("input.txt");
- ofstream out ("output.txt");
- in >> n;
- okosa = n/2;
- urapun = n%2;
- out << okosa << endl;
- out << urapun;
- in.close();
- out.close();
- return 0;
- }
- /*
- 영남이공대학교 사이버보안과 14학번
- Yeungnam University College [IN KR]
- http://www.ync.ac.kr/
- */
Advertisement
Add Comment
Please, Sign In to add comment