Advertisement
Guest User

Untitled

a guest
May 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4.  
  5.  
  6. const int XL = 100;
  7.  
  8. using namespace std;
  9.  
  10. int main ()
  11. {
  12.  
  13. int n,k = 0; cin >> n;
  14.  
  15. char a[XL][XL];
  16. char b[XL];
  17.  
  18.  
  19.  
  20. for (int i = 0; i < n; i++)
  21. {
  22. cin >> a[i];
  23. }
  24.  
  25. for (int j = 0; j < n; j++)
  26. {
  27. a[j][0] = b[j];
  28. }
  29.  
  30. for (int i = 0; i < n; i++)
  31. {
  32. cout << b[i];
  33. }
  34.  
  35.  
  36.  
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement