Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <bits/stdc++.h>
- using namespace std;
- int main () {
- string statement[10];
- int n;
- cin>>n;
- getchar();
- for(int i=0;i<n;i++)
- {
- getline(cin,statement[i]);
- }
- for(int i=0;i<n;i++)
- cout<<statement[i]<<endl;
- string type[10];
- for(int i=0;i<n;i++)
- {
- for(int j=0;j!=' ';j++)
- type[j]=statement[j];
- }
- for(int j=0;j!='\0';j++)
- cout<<type[j]<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement