Mlie

H10-28

Oct 23rd, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.    int n,okosa,urapun;
  8.  
  9.    ifstream in ("input.txt");
  10.    ofstream out ("output.txt");
  11.    in >> n;
  12.    
  13.    okosa = n/2;
  14.    urapun = n%2;
  15.  
  16.    out << okosa << endl;
  17.    out << urapun;
  18.    in.close();
  19.    out.close();
  20.    return 0;
  21. }
  22. /*
  23.    영남이공대학교 사이버보안과 14학번
  24.    Yeungnam University College [IN KR]
  25.    http://www.ync.ac.kr/              
  26.  
  27. */
Advertisement
Add Comment
Please, Sign In to add comment