fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double d;
  6. char c;
  7. while(cin >> d >> c ) {
  8. cout << d << c << endl;
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0s 3460KB
stdin
2a 2b 2x
stdout
2a
2b
2x