Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- string codruga(string napis) {
- string pomoc;
- for(int i=0;i<napis.size();i+=2)
- {
- pomoc=pomoc+napis[i];
- }
- return pomoc;
- }
- int main()
- {
- cout<<codruga("aksamitka");
- return 0;
- }
Add Comment
Please, Sign In to add comment