fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a;
  5. cin >> a;
  6. a = (a / 100) * 10 + a % 10;
  7. cout << a;
  8. return 0;
  9. }
Success #stdin #stdout 0s 15232KB
stdin
123
stdout
13