FEgor04

Fraction

May 29th, 2019
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4.     ios_base::sync_with_stdio(0);
  5.     freopen("fraction.in", "r", stdin);
  6.     freopen("fraction.out", "w", stdout);
  7.     string input;
  8.     cin >> input;
  9.     for(int i = 2; i < input.length(); i++) {
  10.         cout << input[i];
  11.     }
  12.     cout << "\n" << 1;
  13.     for(int i = 0; i<input.length()-2; i++) {
  14.         cout << "0";
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment