Advertisement
ioanaasdfgh

v41 siruri de caractere

Nov 15th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include<iostream>
  2. #include<string.h>
  3. using namespace std;
  4. int main ()
  5. {
  6.     char s[20];
  7.     cin.get(s,20);
  8.     cin.get();
  9.   s[0]= 'E';
  10.   s[strlen(s)-1]= 'A';
  11.   s[strlen(s)/2-1]= 'N';
  12.   s[strlen(s)/2]= 'M';
  13. cout <<s;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement