Advertisement
Tudor_Chender

varianta 2019 s2 (2)

Nov 19th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. char a[25],b[25];
  5. int main()
  6. {
  7.     cin.getline(b,21);
  8.     if(strlen(b)>=3)
  9.     {
  10.         strcpy(a,b+strlen(b)-3);
  11.     }
  12.     else
  13.     {
  14.         strcpy(a, "nedeterminat");
  15.     }
  16.     cout<<a;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement