Facebook
From SURAJ PATWA, 2 Weeks ago, written in C++.
Embed
Download Paste or View Raw
Hits: 131
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main() {
  8.     // Write C++ code here
  9.    string x;
  10.     cin >> x;
  11.    
  12.     for(int i=0;i>'4'  &&  x[i]<='9'){
  13.             x[i]='9'-x[i]+'0';
  14.         }
  15.     }
  16.    
  17.    
  18.    
  19.    cout<<x;
  20.  
  21.     return 0;
  22. }