Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- char a[25],b[25];
- int main()
- {
- cin.getline(b,21);
- if(strlen(b)>=3)
- {
- strcpy(a,b+strlen(b)-3);
- }
- else
- {
- strcpy(a, "nedeterminat");
- }
- cout<<a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement