fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6.  
  7. char c;
  8. while(cin>>c){
  9. cout<<c<<'\n';
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5428KB
stdin
abcd
stdout
a
b
c
d