Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3.  
  4. using namespace std;
  5.  
  6. int main () {
  7.  
  8. string statement[10];
  9. int n;
  10. cin>>n;
  11. getchar();
  12. for(int i=0;i<n;i++)
  13. {
  14. getline(cin,statement[i]);
  15. }
  16. for(int i=0;i<n;i++)
  17. cout<<statement[i]<<endl;
  18. string type[10];
  19.  
  20. for(int i=0;i<n;i++)
  21. {
  22. for(int j=0;j!=' ';j++)
  23. type[j]=statement[j];
  24.  
  25. }
  26. for(int j=0;j!='\0';j++)
  27. cout<<type[j]<<endl;
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement