fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, c;
  6. char b;
  7. cin >> a >> b >> c;
  8. cout << a << endl;
  9. cout << b << endl;
  10. cout << c << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3144KB
stdin
123*456
stdout
123
*
456